27 lines
1.3 KiB
XML
27 lines
1.3 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>
|
|
|
|
<!--
|
|
定义中间输出路径 (obj 文件夹) 的根目录。
|
|
$(SolutionDir) - 指向 .sln 文件所在的目录,确保路径的准确性。
|
|
$(MSBuildProjectName) - 这是当前正在构建的项目的名称,用于创建独立的子目录,避免项目间冲突。
|
|
-->
|
|
<IntermediateOutputPath>$(SolutionDir)build\obj\$(MSBuildProjectName)\</IntermediateOutputPath>
|
|
|
|
<!--
|
|
(可选,但强烈推荐) 同时重定向最终输出路径 (bin 文件夹)。
|
|
这能让你的项目根目录保持整洁。
|
|
-->
|
|
<OutputPath>$(SolutionDir)build\$(Configuration)\bin\</OutputPath>
|
|
</PropertyGroup>
|
|
</Project> |