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>ui

  

相关文章
相关标签/搜索