dotnet pack -c Release
但是默认生成的nuget包是不带注释的,这就为使用者带来了不便。
其实想让生成的nuget包带注释非常简单,只需要在项目文件加上一个 GenerateDocumentationFile 元数据配置即可。完整如下:
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Version>1.0.0.23</Version>
</PropertyGroup>
原文:https://www.cnblogs.com/Alicia-meng/p/14767534.html