-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Directory.Build.props
29 lines (26 loc) · 1.27 KB
/
Directory.Build.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<Project>
<PropertyGroup>
<DefaultItemExcludes>$(DefaultItemExcludes);$(MSBuildProjectDirectory)/obj/**/*</DefaultItemExcludes>
<DefaultItemExcludes>$(DefaultItemExcludes);$(MSBuildProjectDirectory)/bin/**/*</DefaultItemExcludes>
</PropertyGroup>
<Choose>
<When Condition=" '$(DOTNET_RUNNING_IN_CONTAINER)' == 'true' ">
<PropertyGroup>
<BaseIntermediateOutputPath>$(MSBuildProjectDirectory)/obj/container/</BaseIntermediateOutputPath>
<BaseOutputPath>$(MSBuildProjectDirectory)/bin/container/</BaseOutputPath>
</PropertyGroup>
</When>
<When Condition="' $(COMPUTERNAME)' != '' ">
<PropertyGroup>
<BaseIntermediateOutputPath>$(MSBuildProjectDirectory)/obj/$(COMPUTERNAME)/</BaseIntermediateOutputPath>
<BaseOutputPath>$(MSBuildProjectDirectory)/bin/$(COMPUTERNAME)/</BaseOutputPath>
</PropertyGroup>
</When>
<Otherwise>
<PropertyGroup>
<BaseIntermediateOutputPath>$(MSBuildProjectDirectory)/obj/$(OS)/</BaseIntermediateOutputPath>
<BaseOutputPath>$(MSBuildProjectDirectory)/bin/$(OS)/</BaseOutputPath>
</PropertyGroup>
</Otherwise>
</Choose>
</Project>