-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDirectory.Build.props
37 lines (25 loc) · 1.47 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
<!--
***********************************************************************************************
Directory.Build.props
Solution-wide automatic loading of build properties.
Note; this is an example setup.
$(SitecoreRoleType) is used to conditionally load msbuild properties.
Set this property in .csproj files
<SitecoreRoleType>website|identity|automationengine|indexworker|..</SitecoreRoleType>
See the ./_build/props folder and imported files for details.
[Anders Laub // Laub+Co]
***********************************************************************************************
-->
<Project>
<PropertyGroup>
<SolutionDir Condition="'$(SolutionDir)' == ''">$(MSBuildThisFileDirectory)</SolutionDir>
<_SolutionBuildPropertiesPath>$(SolutionDir)\_Build\props\</_SolutionBuildPropertiesPath>
<_DefaultUserProps>$(SolutionDir)\Default.Properties.props.user</_DefaultUserProps>
<CustomBeforeMicrosoftCommonTargets>$(_SolutionBuildPropertiesPath)_SitecoreRoleType.props</CustomBeforeMicrosoftCommonTargets>
</PropertyGroup>
<!-- Import default solution wide properties -->
<Import Project="$(_SolutionBuildPropertiesPath)Default.*.props" />
<!-- Override default properties using .user file if exists -->
<Import Project="$(_DefaultUserProps)"
Condition="exists('$(_DefaultUserProps)')" />
</Project>