Nuspec Packager


Visual Studio extension that provides ability to pack .nuspec files directly from the Solution Explorer contest menu.

(2) Review
Visual Studio
2015, 2013, 2012
Download (4,695)
E-mail Twitter Digg Facebook
Add to favorites
Reviews (2)
Q and A (12)
Sign in to write a review
Sort by:

by HowardRichards | November 26 2013

If you want to use .nuspec files to create packages on demand rather than automate the packaging, this is the tool to use. We have our private .nupkg files on a share, so we compile our library, right click the .nuspec file in VS2012. It compiles the .nuspec into a package and then copies to the share. Fantastic!

Update: now supports VS2013 as well.

by Josh Charles | July 15 2013

There are a few weird quirks, but they were quickly resolved. I am using this to create a file system nuget repository.

To get this going, add both a nuspec and a config file as outlined in the description of this document. Edit both to fit your needs.

When packaging the nuget spec, make sure you have built your application first. If you do not, then it will not use the latest dll. If the package nuget option built your solution before publishing, that would be really nice.

Joseph Gabriel August 25 2015
| Edit |

Thanks for the feedback. Version 1.3+ will build the project containing the .nuspec file before packaging.

Sign in to start a discussion

  • Call nuget pack on csproj file
    5 Posts | Last post June 05, 2016
    • Hi - thanks for the great tool.
      It would be wonderful if the tool could have the option to call nuget pack on the csproj file instead of the nuspec file directly. This would then use the nuspec file but also automatically pick up dependencies and allow use of substitutions like $version$ etc.
    • Hi Joseph
      Is the extension open source in case I wanted to contribute some modifications to it?
    • Thanks for your interest in this project.  I have no objections to making it open source.  I'll try to get it on a repo sometime soon...
    • It wasn't "soon", but this is now on GitHub.   
    • I made a pull request which can build nupkg for project.
      @Joseph Gabriel
  • vs2013 packaging error
    3 Posts | Last post May 05, 2016
    • VS2013.5 pro 
      Package .nuspec fails with 
      Could not load file or assembly 'Microsoft.VisualStudio.Services.Integration, Version=,...' or one of its dependencies. The system cannot find the specified file.
    • Hi, I have the same issue. I have checked and dont have version 11 installed in the GAC only version 12. There doesnt seem to be anyway to edit a config file to allow the version I have to be referenced.
    • Fixed in v1.5
  • Add fixes from GitHub
    3 Posts | Last post May 05, 2016
    • at Issues on GitHub some fixes have been suggested for making it work in VS2015 -
    • ...any plans to adding those fixes?
    • These fixes and a few more changes have been implemented in v1.5
  • Update for Visual Studio 2015?
    3 Posts | Last post August 28, 2015
    • Will there be an updated version for VS2015?
    • Package been updated to support 2015.
    • Brilliant! Many thanks - we use this tool every day on our projects - not having it in VS2015 was a real drawback.
  • nuget.exe
    2 Posts | Last post December 02, 2014
    • With visual studio 2013, the restore package feature no longer create .nuget folder in the solution. Nuget.exe is directly managed by visual studio.
      So I have no nuget.exe in my solution, and I do not know where is installed nuget.exe. Could nuspec packager be compatible with visual studio 2013 and use nuget.exe installed by visual studio ?
    • I didn't "Enable Nuget Package Restore", So I don't have .nuget folder either. But to get this "Nuspec Packager" work properly, you could simply use the "Custom NuGet.exe Path" property, which you can find in "Visual Studio > Tools> Options> NuspecPackager"   
  • How to use?
    5 Posts | Last post December 01, 2014
    • Can't absolutely understand how to use it.
      Please add step by step guide.
    • What part is confusing?  All you do is right-click on a .nuspec file in your solution explorer and choose "Package NuSpec" from the context menu.
    • But it doesn't work for me.
      Where actually do I have to add .nuspec file?
      I've added new solution folder to my solution. Than I've added a few .nuspec files, selected one, chosen Package, nothing happened. I've chosen two, select Package, nothing happened too.
      Could you provide a little bit more detailed instructions how to make it work.
    • ah, I see.  Looks like it's not working in solution folders.  I'll check into fixing that.  It should work normally inside a project.  Try that and let me know.
    • Did you resolve the "solution folders" issue?!
  • Support for Nuget Token Replacement
    2 Posts | Last post July 26, 2014
    • Nuget pack supports replacement tokens, e.g. $version$ in the project is also specified. At present it appears Nuspec packager does not support replacement tokens?
    • Correct - this extension does not support it because the `pack` command is invoked directly, rather than as a part of msbuild.  If you want to use replacement tokens, you'll probably need to use the `pack` MsBuild Task within your project file.
      You might be able to use the config file to point the nuget.exe to a custom proxy exe that sets up the environment variables that you need and then launches nuget.exe, but I haven't tried this.
  • Create package also from project item
    1 Posts | Last post December 22, 2013
    • Hi,
      can you also add the ability to create a packgae from project item?
  • Love the packager - is there a VS2013 version?
    3 Posts | Last post November 26, 2013
    • Really love this extension - simple and easy to use. Only pack when you want to!
      However we are also starting to use VS2013 now - is there a plan to upgrade? Or if open-source can we modify?
    • Thanks for the feedback.  In response to your review and the feedback here, I have updated the Nuspec Packager extension to version 1.2, which supports VS 2013.  There's also support now for automatically building the solution when packaging the .nuspec file.
      This update has received minimal testing, so please let me know of any major issues, and I will get them fixed promptly.
    • Many thanks - works perfectly on VS2013.
  • Package symbols
    5 Posts | Last post November 22, 2013
    • Is it capable to package symbols (create .symbols.nupkg files from nuspec)?
    • It currently does not.  I can add that feature if it would be helpful to you.
    • Yes, please.
    • I have updated the Nuspec Packager extension to version 1.2, which supports VS 2013.  There's also support now for automatically building the solution when packaging the .nuspec file.
      This update has received minimal testing, so please let me know of any major issues, and I will get them fixed promptly.
    • Version 1.3 now supports creating symbols package from .nuspec file.  Let me know if you have any issues.
1 - 10 of 12 Items