dotnet publish 去除 pdb文件

https://github.com/dotnet/sdk/issues/16975

6bee commented on Apr 1
adding the following PropertyGroup to the .pubxml seems to have solved the issue for me:

 <PropertyGroup>
   <DebugType>none</DebugType>
   <GenerateDocumentationFile>false</GenerateDocumentationFile>
   <AllowedReferenceRelatedFileExtensions>none</AllowedReferenceRelatedFileExtensions>
   <NoWarn>$(NoWarn);SA0001</NoWarn>
 </PropertyGroup>
posted @ 2023-07-02 00:08  dewxin  阅读(146)  评论(0)    收藏  举报