Nuspec Packager

Free

Packs Nuspec files from Solution Explorer context menu.

(2) Review
Visual Studio
2013, 2012
Download (1,384)
11/22/2013
1.3
View
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Description
Reviews (2)
Q and A (8)
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.

Sign in to start a discussion


  • Call nuget pack on csproj file
    3 Posts | Last post July 26, 2014
    • 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.
      
      Riko
    • Hi Joseph
      
      Is the extension open source in case I wanted to contribute some modifications to it?
      
      Regards
      Riko
    • 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...
  • 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.
  • Menu item doesn't apear when .nuspec file on solution level (not in project)
    1 Posts | Last post July 04, 2013
    • I created .nuspec file for javascript library. Typical use case when work with javascript library inside Visual Studio is opening library directory like existing web site. In this situation Visual Studio doesn't create project. But menu item doesn't apear when .nuspec file on solution level (not in project). Could you fix this?
  • Also having trouble understanding this?
    2 Posts | Last post May 24, 2013
    • Can't figure out how to use it either, i manually created a .nuspec file, added in the xml shown in the bottom of the description file but it can never find the nuget.exe file when i try to package?
      
      A walk though would really help alot of this confusion.
      
      Steve
    • I will make some effort to put together a walkthrough.  
      In the meantime, I can help you if you want.  If you didn't create a .nuspec-packager.config, it will use the location specified in the Visual Studio Tools>Options dialog.  By default, it will create the package in the same folder as the .nuspec file.  It does not add it to the Visual Studio project.
  • How to use?
    4 Posts | Last post April 16, 2013
    • 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.