Hi,
You can build and host (on your network as a file share) your own nuget 
packages.
This can be done from your build tool-chain. The local "repository" can also be 
setup as the default source for nuget.
Nic

From: [email protected]
To: [email protected]
Subject: RE: Code snippets
Date: Mon, 18 Jan 2016 20:19:37 +0000









Hi Greg,
 
Could you use your version control software to do this? 

SVN has externals & Git has  submodules.  Perhaps these mechanisms could do 
what you want?
 
David
 
From: [email protected] [mailto:[email protected]]
On Behalf Of Greg Keogh

Sent: Tuesday, 19 January 2016 12:58 a.m.

To: ozDotNet <[email protected]>

Subject: Code snippets
 


Folks, I'm looking for a way of managing snippets of code that I want to 
include in multiple unrelated projects. I want them to behave like little Nuget 
packages of source code, so when I update snippets in one project they will be 
recognised
 as out-dated when I open other projects using them.


 


You can get this sharing effect by adding files "as link" in multiple projects, 
but then the projects get mixed up with your local file system. Putting the 
snippets in a utility DLL is technically correct, but far too heavy handed for 
me.


 


Is anyone aware of some facility that does what I want? A VS plugin would 
probably be the way to go, but they're really taxing and specialised to write. 
Maybe there are other ways.


 


Greg K


                                          

Reply via email to