-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
37 lines (30 loc) · 1.7 KB
/
Directory.Build.props
File metadata and controls
37 lines (30 loc) · 1.7 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
<Project>
<PropertyGroup>
<!-- Default to the highest supported version of Roslyn for the best IDE experience. -->
<RoslynVersion Condition="'$(RoslynVersion)'==''">4.4</RoslynVersion>
<BaseIntermediateOutputPath>$(ProjectDir)obj\roslyn$(RoslynVersion)\</BaseIntermediateOutputPath>
<!-- Disable appending things like 'netstandard2.0' to output paths -->
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>
<!-- Visual Studio 2017 15.5 / C# 7.2 -->
<PropertyGroup Condition="'$(RoslynVersion)'=='2.6'">
<RoslynPackageVersion>2.6.1</RoslynPackageVersion>
<DefineConstants>$(DefineConstants);ROSLYN2_6;ROSLYN2_6_OR_HIGHER</DefineConstants>
<CheckNotRecommendedTargetFramework>false</CheckNotRecommendedTargetFramework>
</PropertyGroup>
<!-- Visual Studio 2019 16.8 / C# 9.0 -->
<PropertyGroup Condition="'$(RoslynVersion)'=='3.8'">
<RoslynPackageVersion>3.8.0</RoslynPackageVersion>
<DefineConstants>$(DefineConstants);ROSLYN3_8;ROSLYN3_8_OR_HIGHER;ROSLYN2_6_OR_HIGHER</DefineConstants>
</PropertyGroup>
<!-- Visual Studio 2022 17.0 / C# 10.0 -->
<PropertyGroup Condition="'$(RoslynVersion)'=='4.0'">
<RoslynPackageVersion>4.0.1</RoslynPackageVersion>
<DefineConstants>$(DefineConstants);ROSLYN4_0;ROSLYN4_0_OR_HIGHER;ROSLYN3_8_OR_HIGHER;ROSLYN2_6_OR_HIGHER</DefineConstants>
</PropertyGroup>
<!-- Visual Studio 2022 17.4 / C# 11.0 -->
<PropertyGroup Condition="'$(RoslynVersion)'=='4.4'">
<RoslynPackageVersion>4.4.0</RoslynPackageVersion>
<DefineConstants>$(DefineConstants);ROSLYN4_4;ROSLYN4_4_OR_HIGHER;ROSLYN4_0_OR_HIGHER;ROSLYN3_8_OR_HIGHER;ROSLYN2_6_OR_HIGHER</DefineConstants>
</PropertyGroup>
</Project>