26 lines
1.2 KiB
XML
26 lines
1.2 KiB
XML
<Project>
|
|
<!--
|
|
此文件用于集中定义解决方案下所有项目的构建属性。
|
|
它会被 MSBuild 在处理每个项目时自动导入。
|
|
参考文档: https://learn.microsoft.com/en-us/visualstudio/msbuild/customize-your-build
|
|
-->
|
|
<PropertyGroup>
|
|
<!-- 设置为 false 来阻止 MSBuild 在输出路径后追加目标框架 (如 'net9.0')。 -->
|
|
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
|
|
|
<!-- 设置为 false 来阻止 MSBuild 追加运行时标识 (如 'win-x64')。-->
|
|
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
|
|
|
|
<!--
|
|
(可选,但强烈推荐) 同时重定向最终输出路径 (bin 文件夹)。
|
|
这能让你的项目根目录保持整洁。
|
|
-->
|
|
<OutputPath>$(SolutionDir)build\$(Configuration)\bin\</OutputPath>
|
|
|
|
<!-- ② 彻底搬迁 NuGet Restore 中的 obj 目录 -->
|
|
<BaseIntermediateOutputPath>$(SolutionDir)build\$(Configuration)\obj\</BaseIntermediateOutputPath>
|
|
|
|
<!-- ③ 让后续编译阶段跟随同一目录(可选但推荐)-->
|
|
<IntermediateOutputPath>$(BaseIntermediateOutputPath)</IntermediateOutputPath>
|
|
</PropertyGroup>
|
|
</Project> |