-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOutDir.props
33 lines (29 loc) · 1.28 KB
/
OutDir.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
<!-- This property sheet resolves the 'OutDir'property (supports override in zou.cfg folder). -->
<Project TreatAsLocalProperty="OutDir">
<PropertyGroup>
<OutDir Condition="'$(OutDir)' != ''">$([MSBuild]::EnsureTrailingSlash('$(OutDir)'))</OutDir>
</PropertyGroup>
<!-- Ensure OutDir is absolute -->
<Choose>
<When Condition="'$(OutDirSpecified)' == 'true'">
<PropertyGroup>
<OutDir>$([System.IO.Path]::Combine($(MSBuildStartupDirectory),$(OutDir)))</OutDir>
</PropertyGroup>
</When>
<When Condition="'$(WorkDirSpecified)' == 'true'">
<PropertyGroup>
<OutDir>$([System.IO.Path]::Combine($(WorkDir),$(OutDir)))</OutDir>
</PropertyGroup>
</When>
<!-- When building inside Visual Studio, the following 'Otherwise' clause is redondant.
It's safe to skip it because Visual Studio uses the same conversion internally.
This has the nice side effect to avoid the display of the conversion formula in
the 'Output Directory' field of the 'Project Properties' dialog box -->
<When Condition="'$(BuildingInsideVisualStudio)' == 'true'"/>
<Otherwise>
<PropertyGroup>
<OutDir>$([System.IO.Path]::Combine($(ProjectDir),$(OutDir)))</OutDir>
</PropertyGroup>
</Otherwise>
</Choose>
</Project>