Skip to content

Commit

Permalink
优化打包构建 添加文档和符号
Browse files Browse the repository at this point in the history
  • Loading branch information
lindexi committed Sep 18, 2024
1 parent f860e25 commit b242302
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,25 @@
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/dotnet-campus/dotnetCampus.Logger</RepositoryUrl>
<PackageProjectUrl>https://github.com/dotnet-campus/dotnetCampus.Logger</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
</PropertyGroup>

<!-- 打包控制 -->
<PropertyGroup>
<!-- 嵌入源代码到符号文件,方便调试 -->
<EmbedAllSources>true</EmbedAllSources>
<!-- 输出 pdb 文件 NuGet 包 -->
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>

<!-- PackageReadmeFile -->
<PropertyGroup>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>
<ItemGroup>
<None Include="..\..\README.md" Link="README.md" Pack="True" PackagePath="\" Visible="False"/>
</ItemGroup>

<Import Project="$(MSBuildThisFileDirectory)src\dotnetCampus.Logger\Properties\Package\buildTransitive\Package.props" />

</Project>

0 comments on commit b242302

Please sign in to comment.