参考资料
.csproj
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<DockerfileContext>..\..</DockerfileContext>
<IncludeSymbolsInSingleFile>true</IncludeSymbolsInSingleFile>
<ServerGarbageCollection>false</ServerGarbageCollection>
<ConcurrentGarbageCollection>true</ConcurrentGarbageCollection>
<Platforms>AnyCPU;ARM64</Platforms>
<AssemblyVersion>3.0.*</AssemblyVersion>
<OutputPath>..\..\..\..\9.published\WebApiUI\</OutputPath>
<DocumentationFile>..\..\..\..\9.published\temp\xml\$(MSBuildProjectName).xml</DocumentationFile>
<NoWarn>1701;1702;1591</NoWarn>
</PropertyGroup>
<PropertyGroup>
<!-- 指定的版本字符串中包含与确定性不兼容的通配符 -->
<GenerateAssemblyInfo>False</GenerateAssemblyInfo>
<Deterministic>False</Deterministic>
</PropertyGroup>
</Project>
生成路径中包括框架和运行时
<PropertyGroup>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
</PropertyGroup>