Reputation: 21
I am using Microsoft Visual Studio Community edition V15.2 (.net 4.6). I have a .Net framework class library, which refer Akka.net nuget package. I want to publish my assembly as a nuget package. But the package option is missing in Visual Studio
NB: I tried to convert it to a .NET standard library as specified in following link (Nuget project class library) But it did not worked for me. How can I publish my .net framework library using Nuget
Upvotes: 2
Views: 6029
Reputation: 372
Go to https://www.nuget.org/downloads download nuget.exe
Use the command: nuget.exe pack "C:\yourproject.csproj"
Examples of the pack command:
nuget pack
nuget pack foo.nuspec
nuget pack foo.csproj
nuget pack foo.csproj -Build -Symbols -Properties Configuration=Release
nuget pack foo.nuspec -Version 2.1.0
Upvotes: 4