Pages

Tuesday, 23 June 2015

Creating NuGet Packages with Octopack


  1. Create a blank Visual Studio Project
  2. Create a folder in the solution that contains the dll's that you want to be part of your package.
  3. For each of the included dll's, right click > 'Properties' > set the 'Copy to Output Directory' value to 'Copy Always'.
  4. In Package Manager Console type:
    1. Install-Package OctoPack
  5. Right Click on the project in Solution Explorer > 'Unload Project'
  6. Edit the project file.
  7. Find the 'Release'  configuration PropertyGroup
  8. Add the node:
    1. <RunOctoPack>true</RunOctoPack>
  9. Reload the project and compile in 'Release' mode
  10. The *.nupkg file should now be in the 'Release' folder.

No comments:

Post a Comment