-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDirectory.build.props
56 lines (45 loc) · 2.53 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!--
***********************************************************************************************
Shared msbuild properties.
Enables autopublish on build and toggle deployment options.
[Anders Laub // Laub+Co]
***********************************************************************************************
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!--
Loads shared pubxml file -->
<CustomBeforeMicrosoftCommonTargets>$(MSBuildThisFileDirectory)Docker.pubxml</CustomBeforeMicrosoftCommonTargets>
<!-- DeployOnBuild
Automatically deploy (publish) projects on build. . -->
<DeployOnBuild>True</DeployOnBuild>
<IsLocalDockerDeploy>True</IsLocalDockerDeploy>
<!-- SitecoreRoleType
$(SitecoreRoleType) defaults to 'platform'.
If you'd like to deploy a specific project to f. ex. the xconnect folder then just add the following in .csproj file:
<PropertyGroup>
...
<SitecoreRoleType>xconnect</SitecoreRoleType>
...
</PropertyGroup>
-->
<SitecoreRoleType>platform</SitecoreRoleType>
</PropertyGroup>
<!--
These props ensure there is no conflict between builds within your Rendering Host container ('dotnet watch'),
and local builds on the container host (e.g. in Visual Studio).
https://stackoverflow.com/a/60908066/201808
-->
<PropertyGroup Condition="'$(UsingMicrosoftNETSdk)' == 'true'">
<DefaultItemExcludes>$(DefaultItemExcludes);$(MSBuildProjectDirectory)/obj/**/*</DefaultItemExcludes>
<DefaultItemExcludes>$(DefaultItemExcludes);$(MSBuildProjectDirectory)/bin/**/*</DefaultItemExcludes>
</PropertyGroup>
<PropertyGroup Condition="'$(UsingMicrosoftNETSdk)' == 'true' AND '$(DOTNET_RUNNING_IN_CONTAINER)' == 'true'">
<BaseIntermediateOutputPath>$(MSBuildProjectDirectory)/obj/container/</BaseIntermediateOutputPath>
<BaseOutputPath>$(MSBuildProjectDirectory)/bin/container/</BaseOutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(UsingMicrosoftNETSdk)' == 'true' AND '$(DOTNET_RUNNING_IN_CONTAINER)' != 'true'">
<BaseIntermediateOutputPath>$(MSBuildProjectDirectory)/obj/local/</BaseIntermediateOutputPath>
<BaseOutputPath>$(MSBuildProjectDirectory)/bin/local/</BaseOutputPath>
</PropertyGroup>
</Project>