Search code examples
nugetnuget-packagenuspec

which is good approach to create nuget packages?


As I developer I wonder which is the best approch to create a nuget packages ?

1.NuGet Package Project (link)

2.Use Nuget.exe use .Nuspec (add manually and update manually)

Anyone guide on this. Currently I'm using nuget.exe and .Nuspec but problem is everytime I have to manually update .nuspec if any new project is added.

Is there any other good options to do so ?


Solution

  • You can also build a NuGet package by running the nuget pack command against the csproj file. More information can be found here: Creating And Publishing A Package