Build nuspec from csproj with GUI

I have a C # project that has 2 project references from projects in my solution.

It also has 5 links to NuGet packages from packages in my NuGet repository. Considering .csproj

how can I generate or generate a file nuspec

using the NuGet Project Explorer tool?

And how to check if this nuspec

one is really correct?

+3


source to share


1 answer


You can do this using NuGet.exe with a command line like:

NuGet.exe spec Project.csproj

      

To do this from within Visual Studio, you can add a new external tool (from the Tools menu) that uses NuGet.exe.



NuGet Project Explorer supports NuGet packages but not project files, so one of the above methods will be easier. For NuGet Project Explorer, you need to write a custom addon.

For verification, NuGet.exe will generate a .nuspec file to be valid. Also, when you use it NuGet.exe pack YourNuspec.nuspec

, it will be checked when you create a NuGet package with warnings to the console.

+6


source







All Articles