Skip to content

Instantly share code, notes, and snippets.

@Pegolon
Created August 13, 2020 10:29
Show Gist options
  • Save Pegolon/e8eb43aa9cbb5d7985c97362cf0d269d to your computer and use it in GitHub Desktop.
Save Pegolon/e8eb43aa9cbb5d7985c97362cf0d269d to your computer and use it in GitHub Desktop.
Use C# projects at the same time on Windows and Mac (and even Linux)
<?xml version="1.0" encoding="utf-8"?>
<Project>
<Choose>
<When Condition="'$(OS)' == 'Windows_NT'">
<PropertyGroup>
<BaseIntermediateOutputPath>B:/$(MSBuildProjectFile) Intermediate/</BaseIntermediateOutputPath>
<OutputPath>B:/$(MSBuildProjectFile) Output/$(Configuration)/</OutputPath>
</PropertyGroup>
</When>
<Otherwise>
<PropertyGroup>
<BaseIntermediateOutputPath>/Volumes/ramdisk/$(MSBuildProjectFile) Intermediate/</BaseIntermediateOutputPath>
<OutputPath>/Volumes/ramdisk/$(MSBuildProjectFile) Output/$(Configuration)/</OutputPath>
</PropertyGroup>
</Otherwise>
</Choose>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment