-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAsmDir.props
30 lines (27 loc) · 1002 Bytes
/
AsmDir.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
<!-- This property sheet resolves the 'AsmDir'property (supports override in zou.cfg folder). -->
<Project TreatAsLocalProperty="AsmDir">
<PropertyGroup>
<AsmDir Condition="'$(AsmDir)' != ''">$([MSBuild]::EnsureTrailingSlash('$(AsmDir)'))</AsmDir>
</PropertyGroup>
<!-- Ensure AsmDir is absolute -->
<Choose>
<When Condition="'$(AsmDirSpecified)' == 'true'">
<PropertyGroup>
<AsmDir>$([System.IO.Path]::Combine($(MSBuildStartupDirectory),$(AsmDir)))</AsmDir>
</PropertyGroup>
</When>
<When Condition="'$(WorkDirSpecified)' == 'true'">
<PropertyGroup>
<AsmDir>$([System.IO.Path]::Combine($(WorkDir),$(AsmDir)))</AsmDir>
</PropertyGroup>
</When>
<Otherwise>
<PropertyGroup>
<AsmDir>$([System.IO.Path]::Combine($(ProjectDir),$(AsmDir)))</AsmDir>
</PropertyGroup>
</Otherwise>
</Choose>
<PropertyGroup>
<AsmProjDir>$(AsmDir)$(BundleRelativeProjectName)\</AsmProjDir>
</PropertyGroup>
</Project>