-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
93 lines (78 loc) · 3.59 KB
/
Directory.Build.props
File metadata and controls
93 lines (78 loc) · 3.59 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Here>$(MSBuildThisFileDirectory)</Here>
<SrcDir>$(Here)src\</SrcDir>
<LibDir>$(Here)lib\</LibDir>
<SevenZip>$(Here)vendor\7z\7za.exe</SevenZip>
</PropertyGroup>
<PropertyGroup>
<IsDebug>$([System.Convert]::ToString( $([System.Text.RegularExpressions.Regex]::IsMatch($(Configuration), '[Dd]ebug'))))</IsDebug>
<IsRelease>$([System.Convert]::ToString( $([System.Text.RegularExpressions.Regex]::IsMatch($(Configuration), '[Rr]elease'))))</IsRelease>
</PropertyGroup>
<PropertyGroup Label="GlobalDefineConstants">
<DefineConstants Condition="'$(IsDebug)'">DEBUG;TRACE;</DefineConstants>
<DefineConstants Condition="'$(IsRelease)'">TRACE;</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(IsDebug)'">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(IsRelease)'">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<Prefer32Bit>false</Prefer32Bit>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<PropertyGroup>
<Year>2020</Year>
<Year Condition="'$(Configuration.Contains(2020))'">2020</Year>
<Year Condition="'$(Configuration.Contains(2021))'">2021</Year>
<Year Condition="'$(Configuration.Contains(2022))'">2022</Year>
<YearTarget>YEAR_TARGET_$(Year)</YearTarget>
<DefineConstants>$(DefineConstants);$(YearTarget)</DefineConstants>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net471</TargetFramework>
<TargetFramework Condition="'$(Year)' == '2020'">net471</TargetFramework>
<TargetFramework Condition="'$(Year)' == '2021'">net48</TargetFramework>
<TargetFramework Condition="'$(Year)' == '2022'">net48</TargetFramework>
</PropertyGroup>
<PropertyGroup>
<Configurations>Debug_2020;Release_2020;Debug_2021;Release_2021;Debug_2022;Release_2022</Configurations>
</PropertyGroup>
<PropertyGroup Label="MaxProjectProperties">
<YearLibDir>$(LibDir)$(Year)\</YearLibDir>
<Autodesk_Max_dll>$(YearLibDir)Autodesk.Max.dll</Autodesk_Max_dll>
<ManagedServices_dll>$(YearLibDir)ManagedServices.dll</ManagedServices_dll>
<MaxPlusDotNet_dll>$(YearLibDir)MaxPlusDotNet.dll</MaxPlusDotNet_dll>
<YearOutDir>$(Here)out\$(Configuration)\</YearOutDir>
<YearZip>$(Here)out\$(Configuration).zip</YearZip>
<YearBinDir>$(YearOutDir)max-tools\</YearBinDir>
<MaxToolsBootstrapFileName>bulk-edit.ms</MaxToolsBootstrapFileName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Debug_2020'">
<OutputPath>$(YearBinDir)</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release_2020'">
<OutputPath>$(YearBinDir)</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Debug_2021'">
<OutputPath>$(YearBinDir)</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release_2021'">
<OutputPath>$(YearBinDir)</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Debug_2022'">
<OutputPath>$(YearBinDir)</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release_2022'">
<OutputPath>$(YearBinDir)</OutputPath>
</PropertyGroup>
</Project>