forked from dotnet/core-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
30 lines (25 loc) · 1.38 KB
/
Directory.Build.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
<Project>
<PropertyGroup>
<!--
NOTE: This .props file assumes it is only imported by projects that use the SDK="Microsoft.NET.Sdk" in their project.
We are currently on too old of an SDK to detect - it doesn't have https://github.com/dotnet/sdk/pull/1242.
But once we move to a new version, we can remove this property setting, and everything else will work correctly.
-->
<UsingMicrosoftNETSdk Condition="'$(MSBuildProjectExtension)' == '.csproj'">true</UsingMicrosoftNETSdk>
</PropertyGroup>
<PropertyGroup Condition="'$(UsingMicrosoftNETSdk)' == 'true'">
<!-- SDK-based projects' Platform should default to AnyCPU, not $(TargetArchitecture) like dir.props sets. -->
<Platform>AnyCPU</Platform>
<UsingNETSdkCompiler>true</UsingNETSdkCompiler>
<DisableBuildToolsRoslynVersion>true</DisableBuildToolsRoslynVersion>
</PropertyGroup>
<Import Project="dir.props" />
<PropertyGroup Condition="'$(UsingMicrosoftNETSdk)' == 'true'">
<!--
The Microsoft.NET.Sdk changed the definition of what it assumes $(BaseIntermediateOutputPath) is.
In the "old" .csproj files, BaseIntermediateOutputPath could be shared with many projects.
In the SDK-based .csproj files, BaseIntermediateOutputPath is assumed to be project-specific.
-->
<BaseIntermediateOutputPath>$(IntermediateOutputPath)</BaseIntermediateOutputPath>
</PropertyGroup>
</Project>