Visual Studio 的專案在建置 .NET 專案時會自動建立 Obj 目錄放置中繼檔案,該目錄位置並無直接的設定方式。

如果想要調整該目錄位置,可設定 Project 檔案,在欲生效的 PropertyGroup 中加入 BaseIntermediateOutputPath 元素去指定位置。

  ...
  <PropertyGroup>
    ...
    <BaseIntermediateOutputPath>..\..\Obj</BaseIntermediateOutputPath>
  </PropertyGroup>
  ...

Visual Studio - Move obj folder

Link