forked from dotnet/msbuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdir.props
147 lines (124 loc) · 7.61 KB
/
dir.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
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--
$(OS) is set to Unix/Windows_NT. This comes from an environment variable on Windows and MSBuild on Unix.
-->
<PropertyGroup>
<OsEnvironment Condition="'$(OsEnvironment)'==''">$(OS)</OsEnvironment>
</PropertyGroup>
<PropertyGroup>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<!-- This is to workaround an issue with a dependent assembly (Microsoft.Build.Tasks.CodeAnalysis.dll)
copying its dependencies (which are in the GAC). -->
<DoNotCopyLocalIfInGac>true</DoNotCopyLocalIfInGac>
<TargetMSBuildToolsVersion>15.0</TargetMSBuildToolsVersion>
</PropertyGroup>
<!-- Compiler config -->
<PropertyGroup>
<UseRoslynCompilers>true</UseRoslynCompilers>
<DebugSymbols Condition="'$(UseRoslynCompilers)' == 'true'">false</DebugSymbols>
</PropertyGroup>
<!-- Localization switches -->
<PropertyGroup>
<LocalizationBuildAssetsRequired Condition="'$(LocalizedBuild)' == 'true' or '$(SyncXlf)' == 'true'">true</LocalizationBuildAssetsRequired>
<!-- Syncing xlf files in parallel leads to races because of the shared resources under /Shared/Resources/xlf -->
<BuildInParallel Condition="'$(SyncXlf)' == 'true'">false</BuildInParallel>
</PropertyGroup>
<!-- Common repo directories -->
<PropertyGroup>
<ProjectDir>$(MSBuildThisFileDirectory)</ProjectDir>
<SourceDir>$(ProjectDir)src\</SourceDir>
<PackagesDir>$(ProjectDir)packages\</PackagesDir>
<!-- Output directories -->
<BinDir>$(ProjectDir)bin\</BinDir>
<TestWorkingDir>$(BinDir)tests\</TestWorkingDir>
<BootstrapDestination>$(BinDir)Bootstrap\</BootstrapDestination>
<!-- Package version / directories -->
<BuildToolsVersion>1.0.26-prerelease-00627-02</BuildToolsVersion>
<CompilerToolsVersion>2.0.0-beta3</CompilerToolsVersion>
<XunitVersion>2.1.0</XunitVersion>
<MicroBuildVersion>0.2.0</MicroBuildVersion>
<GitVersioningVersion>1.5.46</GitVersioningVersion>
<ToolsDir>$(PackagesDir)Microsoft.DotNet.BuildTools.$(BuildToolsVersion)\lib\</ToolsDir>
<BuildToolsTaskDir>$(ToolsDir)net45\</BuildToolsTaskDir>
<PackagingTaskDir>$(ToolsDir)net45\</PackagingTaskDir>
<CompilerToolsDir>$(PackagesDir)Microsoft.Net.Compilers.$(CompilerToolsVersion)\tools</CompilerToolsDir>
<MicroBuildDir>$(PackagesDir)\MicroBuild.Core.$(MicroBuildVersion)\build\</MicroBuildDir>
<GitVersioningDir>$(PackagesDir)\Nerdbank.GitVersioning.$(GitVersioningVersion)\build\</GitVersioningDir>
</PropertyGroup>
<!-- If we're building with a bootstrapped MSBuild, use fresh extensions instead of the installed ones. -->
<PropertyGroup Condition="'$(BootstrappedMSBuild)' == 'true'">
<MSBuildExtensionsPath>$(BootstrapDestination)</MSBuildExtensionsPath>
</PropertyGroup>
<!-- list of nuget package sources passed to nuget.exe -->
<ItemGroup>
<NuGetSourceList Include="https:%2F%2Fwww.myget.org/F/dotnet-buildtools" />
<NuGetSourceList Include="https:%2F%2Fwww.nuget.org/api/v2" />
</ItemGroup>
<!-- Common nuget properties -->
<PropertyGroup>
<NuGetToolPath Condition="'$(NuGetToolPath)'==''">$(PackagesDir)NuGet.exe</NuGetToolPath>
<NuGetConfigFile>$(SourceDir).nuget\NuGet.Config</NuGetConfigFile>
<NuGetPackageSource>@(NuGetSourceList -> '-source %(Identity)', ' ')</NuGetPackageSource>
<NuGetConfigCommandLine>$(NuGetPackageSource) -ConfigFile "$(NuGetConfigFile)"</NuGetConfigCommandLine>
<NuGetConfigDir>$([System.IO.Path]::Combine($(SourceDir),".nuget"))</NuGetConfigDir>
<NuGetDir>$(PackagesDir)</NuGetDir>
<NugetRestoreCommand>"$(NuGetToolPath)"</NugetRestoreCommand>
<NugetRestoreCommand>$(NugetRestoreCommand) install</NugetRestoreCommand>
<!-- NuGet.exe doesn't like trailing slashes in the output directory argument -->
<NugetRestoreCommand>$(NugetRestoreCommand) -OutputDirectory "$(PackagesDir.TrimEnd('/\'.ToCharArray()))"</NugetRestoreCommand>
<NugetRestoreCommand>$(NugetRestoreCommand) $(NuGetConfigCommandLine)</NugetRestoreCommand>
<NugetRestoreCommand>$(NugetRestoreCommand) -Verbosity detailed</NugetRestoreCommand>
<NugetRestoreCommand Condition="'$(OsEnvironment)'=='Unix'">mono $(NuGetRestoreCommand)</NugetRestoreCommand>
<_RestoreBuildToolsCommand>$(NugetRestoreCommand) "$(SourceDir).nuget/packages.config"</_RestoreBuildToolsCommand>
</PropertyGroup>
<!-- Set default Configuration and Platform -->
<PropertyGroup>
<Configuration Condition="'$(Configuration)' ==''">Debug</Configuration>
<Platform Condition="'$(Platform)'==''">x86</Platform>
<!-- Only build for specific platforms when PlatformSpecificBuild == true. Otherwise
build for AnyCPU. Only MSBuild.exe and MSBuildTaskHost.exe should need this -->
<PlatformTarget Condition="'$(PlatformSpecificBuild)'!='true'">AnyCPU</PlatformTarget>
<PlatformTarget Condition="'$(PlatformSpecificBuild)'=='true'">$(Platform)</PlatformTarget>
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
</PropertyGroup>
<!-- Setup Default symbol and optimization for Configuration -->
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<DebugSymbols Condition="'$(DebugSymbols)' == ''">true</DebugSymbols>
<Optimize Condition="'$(Optimize)' == ''">false</Optimize>
<DebugType Condition="'$(DebugType)' == ''">full</DebugType>
<MsbuildDebugger>true</MsbuildDebugger>
<DefineConstants>$(DefineConstants);DEBUG;TRACE;STANDALONEBUILD</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<DebugSymbols Condition="'$(DebugSymbols)' == ''">true</DebugSymbols>
<Optimize Condition="'$(Optimize)' == ''">true</Optimize>
<DebugType Condition="'$(DebugType)' == ''">pdbonly</DebugType>
<MsbuildDebugger>true</MsbuildDebugger>
<DefineConstants>$(DefineConstants);TRACE;STANDALONEBUILD</DefineConstants>
</PropertyGroup>
<!-- Change define constants as needed -->
<PropertyGroup>
<DefineConstants>$(DefineConstants);FEATURE_MSBUILD_DEBUGGER</DefineConstants>
<DefineConstants Condition="$(LocalizedBuild) == 'true'">$(DefineConstants);LOCALIZED_BUILD</DefineConstants>
</PropertyGroup>
<!-- Setup some common paths -->
<PropertyGroup>
<CommonPath>$(SourceDir)Common\src</CommonPath>
<CommonTestPath>$(SourceDir)Common\tests</CommonTestPath>
</PropertyGroup>
<!-- Setup the default output and intermediate paths -->
<PropertyGroup>
<BaseOutputPath Condition="$(BaseOutputPath) == ''">$(BinDir)</BaseOutputPath>
<BaseOutputPathWithConfig>$(BaseOutputPath)$(OS)\$(Configuration)\</BaseOutputPathWithConfig>
<BaseOutputPathWithConfig Condition="'$(Platform)' != 'AnyCPU'">$(BaseOutputPath)$(Platform)\$(OS)\$(Configuration)\</BaseOutputPathWithConfig>
<OutputPath>$(BaseOutputPathWithConfig)\</OutputPath>
<BaseIntermediateOutputPath>$(BaseOutputPath)obj\</BaseIntermediateOutputPath>
<IntermediateOutputPath>$(BaseIntermediateOutputPath)$(MSBuildProjectName)\$(OS)\$(Configuration)\</IntermediateOutputPath>
<IntermediateOutputPath Condition="'$(Platform)' != 'AnyCPU'">$(BaseIntermediateOutputPath)$(MSBuildProjectName)\$(Platform)\$(OS)\$(Configuration)\</IntermediateOutputPath>
<TestPath>$(TestWorkingDir)$(MSBuildProjectName)\$(OS)\$(Configuration)\</TestPath>
<TestPath Condition="'$(Platform)' != 'AnyCPU'">$(TestWorkingDir)$(MSBuildProjectName)\$(Platform)\$(OS)\$(Configuration)\</TestPath>
</PropertyGroup>
<PropertyGroup>
<BuildBinDir>$(ProjectDir)build\bin\$(Platform)\$(OS)\$(Configuration)</BuildBinDir>
</PropertyGroup>
</Project>