Skip to content

Instantly share code, notes, and snippets.

@Joker-vD
Last active May 18, 2020 22:22
Show Gist options
  • Save Joker-vD/12d6561fc9f76f7c29909653a1a14473 to your computer and use it in GitHub Desktop.
Save Joker-vD/12d6561fc9f76f7c29909653a1a14473 to your computer and use it in GitHub Desktop.
Separating src/obj/bin from each other
  • for C/C++ projects to have output in "Debug-x86" instead of "Debug-Win32":
 <PropertyGroup>
   <IntermediateOutputPath>$(SolutionDir)..\obj\$(Configuration)-$(Platform)\$(MSBuildProjectName)\</IntermediateOutputPath>
   <OutputPath>$(SolutionDir)..\bin\$(Configuration)-$(Platform)\</OutputPath>
   <IntDir>$(SolutionDir)..\obj\$(Configuration)-$(Platform)\$(MSBuildProjectName)\</IntDir>
   <OutDir>$(SolutionDir)..\bin\$(Configuration)-$(PlatformShortName)\</OutDir>
 </PropertyGroup>
  • for everything else:
  <PropertyGroup>
    <IntermediateOutputPath>$(SolutionDir)..\obj\$(Configuration)-$(Platform)\$(MSBuildProjectName)\</IntermediateOutputPath>
    <OutputPath>$(SolutionDir)..\bin\$(Configuration)-$(Platform)\</OutputPath>
    <IntDir>$(SolutionDir)..\obj\$(Configuration)-$(Platform)\$(MSBuildProjectName)\</IntDir>
    <OutDir>$(SolutionDir)..\bin\$(Configuration)-$(Platform)\</OutDir>
  </PropertyGroup>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment