NuGet Packages - sindizzy/DSW GitHub Wiki

http://nuget.codeplex.com/ is a library package manager, with a repository on codeplex. Basically, it should have been maven for Visual Studio and .Net projects

Even though it's not, we should publish official releases as packages, and host a development repository.

To Test:

  • install http://nuget.codeplex.com/
  • in the command line run (use AnyCPU version if you are building x64) SupportFiles/Nuget/nuget.exe pack "DotSpatialCore_x86.nuspec" /BasePath Debug
  • Move the .nupkg to a directory
  • configure a local feed to that directory: [http://nuget.codeplex.com/wikipage?title=Hosting%20Your%20Own%20Local%20and%20Remote%20NuPack%20Feeds](local feed)
  • create a new solution
    • open properties, make the namespace DemoMap
    • Copy over the files from DotSpatial.Examples/DemoMap
    • note that it will not compile
  • right click, on project>Add Library Package Reference
    • click online
    • click local (or whatever you called the local directory)
    • install
  • Now build.

Present thoughts:

adding to the build syster http://biasecurities.com/blog/2010/creating-nuget-packages-with-teamcity/

  • Beg, plead for Hydrodesktop to use this system.

Notes:

  • added nuget.exe to SupportFile/Nuget
  • version number needs to be valid version like number (eg 1.1.0 not 1.0.0 beta)
  • command will be: SupportFiles/Nuget/nuget.exe pack "DotSpatialCore_x86.nuspec" /BasePath $(Configuration)
  • add mime map to IIS: nupkg

Pages:

⚠️ **GitHub.com Fallback** ⚠️