📝

.NET 8 ビルド時の出力パスにプラットフォームを含めない方法

2025/01/30に公開

方法

プロジェクトの設定で、AppendPlatformToOutputPathの値をfalseにする。

<PropertyGroup>
    ...
    <AppendPlatformToOutputPath>false</AppendPlatformToOutputPath>
</PropertyGroup>

上記を設定することで、ビルド時の出力パスに以下のプラットフォームのフォルダが含まれなくなる。

  • x64
  • x86

参考

https://developercommunity.visualstudio.com/t/Option-to-remove-platform-from-build-out/10423528?q=work+items+missing+from+backlogs+after+changing+area+path+location+in+project+configuration+settings

https://github.com/dotnet/sdk/pull/34530

Discussion