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.
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
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
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
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
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 snippets
Date:
> But I would finish up with dozens of them, each contain maybe only 10
lines of code.
I don't see a anything wrong with that, we were discussing this exact thing
this morning in the ReactiveUI slack room.
The ReactiveExtensions NuGet package is considered 'bloated' and
absolutely *hate* how
Always be creating NuGet packages (and open sourcing), no matter how small
the code snippet is.
https://en.wikipedia.org/wiki/Unix_philosophy
Do one thing, do it well.
Some of the best libraries in npmjs are less than 50 lines long.
On 19 January 2016 at 07:41, Nic Roche
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).