-
Notifications
You must be signed in to change notification settings - Fork 41
/
Repo.props
55 lines (42 loc) · 2.07 KB
/
Repo.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
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--
*****************************************************************************
Repo base paths from which the build environment will be built.
*****************************************************************************
-->
<PropertyGroup>
<!--
The root path of the repo/enlistment (ex: S:\Source\repo).
ex: S:\buildRoot\repo
-->
<RepoPath>$([System.IO.Path]::GetDirectoryName($(MSBuildThisFileDirectory)).TrimEnd('\'))</RepoPath>
<!--
The path to scripts that are used by repo build, packaging etc. processes.
ex: S:\buildRoot\repo\scripts
-->
<RepoScriptsPath>$(RepoPath)\scripts</RepoScriptsPath>
<!--
.targets and .props files used in projects to produce common behaviors during build that are specific
to the repo itself.
ex: S:\buildRoot\repo\toolsets
-->
<RepoToolsetsPath>$(RepoPath)\toolsets</RepoToolsetsPath>
</PropertyGroup>
<!--
*****************************************************************************
Import the build environment settings. These settings define the paths that
will be used during build/compilation
(e.g. bin/output path, intermediates path, NuGet package cache path).
*****************************************************************************
-->
<!--
1) Load the build environment settings from the 'buildEnv' submodule if a Git submodule is being used.
-->
<Import Project="$(MSBuildThisFileDirectory).buildenv\BuildEnv.props" Condition="Exists('$(MSBuildThisFileDirectory).buildenv\BuildEnv.props')" />
<!--
OR
2) Otherwise, load the build environment settings from the local repo root directory if a Git submodule IS NOT being used.
-->
<Import Project="$(MSBuildThisFileDirectory)BuildEnv.props" Condition="!Exists('$(MSBuildThisFileDirectory).buildenv\BuildEnv.props')" />
</Project>