Re: Code snippets

2016-01-18 Thread Thomas Koster
Greg, On 18 January 2016 at 22:58, Greg Keogh wrote: > 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

Re: Code snippets

2016-01-18 Thread Thomas Koster
On 19 January 2016 at 10:54, Greg Keogh wrote: >> example. It will check out whole files. As whole files, your snippets >> will need to be complete C# source files, which means classes (whole >> or partial, but classes nonetheless), not isolated methods. > > Nah, I want text

Re: Code snippets

2016-01-18 Thread Geoffrey Huntley
You could make a http://sidewaffle.com/ plugin for your snippets but that won't help you with the versioning across projects issue once they are in your code-base. On 19 January 2016 at 10:54, Greg Keogh wrote: > example. It will check out whole files. As whole files, your

RE: Code snippets

2016-01-18 Thread David Smith
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: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Greg Keogh Sent: Tuesday, 19 January 2016

RE: Code snippets

2016-01-18 Thread Nic Roche
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: dav...@nzcity.co.nz To: ozdotnet@ozdotnet.com Subject: RE: Code sni

Re: Code snippets

2016-01-18 Thread Geoffrey Huntley
> Date: Tue, 19 Jan 2016 09:17:38 +1100 > From: Greg Keogh <gfke...@gmail.com> > Subject: Re: Code snippets > To: ozDotNet <ozdotnet@ozdotnet.com> > Message-ID: > < > cabdhbw2kkwrgkgknyv9fefyvqfaynyz9sr3nxois5v8ga2c...@mail.gmail.com> > Content-

Re: Code snippets

2016-01-18 Thread Geoffrey Huntley
- > From: dav...@nzcity.co.nz > To: ozdotnet@ozdotnet.com > Subject: RE: Code snippets > Date: Mon, 18 Jan 2016 20:19:37 + > > > Hi Greg, > > > > Could you use your version control software to do this? > > SVN has externals & Git has

Re: Code snippets

2016-01-18 Thread Greg Keogh
Hi guys, I'm pretty sure I want this "thing" to work at the source code level, not at the binary reference level. I said I could put all the snippets in DLLs, but I would finish up with dozens of them, each contain maybe only 10 lines of code (I have my own local Nuget package source for testing).