我正在使用Microsoft Visual Studio社区版V15.2(.net 4.6)。 我有一个.Net框架类库,它参考Akka.net nuget包。 我想将我的程序集作为nuget包发布。但在Visual Studio中缺少包选项为.net框架库创建nuget包
注意:我试图将它转换为.NET标准库,如以下链接中所指定(Nuget project class library) 但它不适用于我。 如何发布使用的NuGet
我的.net库中我正在使用Microsoft Visual Studio社区版V15.2(.net 4.6)。 我有一个.Net框架类库,它参考Akka.net nuget包。 我想将我的程序集作为nuget包发布。但在Visual Studio中缺少包选项为.net框架库创建nuget包
注意:我试图将它转换为.NET标准库,如以下链接中所指定(Nuget project class library) 但它不适用于我。 如何发布使用的NuGet
我的.net库中转到https://www.nuget.org/downloads下载nuget.exe
使用命令:nuget.exe包 “C:\ yourproject.csproj”
实例:
的NuGet包
的NuGet包foo.nuspec
的NuGet包foo.csproj
的NuGet包foo.csproj -build -symbols -Properties配置=松开
的NuGet包foo.nuspec -Version 2.1.0
尼古拉斯,你的回答触发了系统中低质量的标志 – JasonB
您是否阅读过[https://docs.microsoft.com/zh-cn/nuget/guides/create-net-standard-packages-vs2015](https://docs.microsoft.com/zh-cn/nuget /指南/创建净标准封装-vs2015)? – Hintham