dotnet打包类库

  • 打包类库成Nuget包:dotnet pack --configuration Release --include-source --include-symbols --no-build,注意,需要在项目csproj文件中增加如下红色部分内容,打包出来的Nuget包才会有注释。

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>1.2.1</Version>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

  

posted @ 2019-06-04 15:26  AI柚子  阅读(425)  评论(0编辑  收藏  举报