-
-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
40 lines (34 loc) · 1.96 KB
/
Copy pathDirectory.Build.props
File metadata and controls
40 lines (34 loc) · 1.96 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
<Project>
<PropertyGroup>
<!-- https://learn.microsoft.com/en-us/dotnet/core/sdk/artifacts-output -->
<!-- ArtifactsPath is set explicitly because some folders have their own Directory.Build.props,
and the default location is the folder of the Directory.Build.props found for the project -->
<UseArtifactsOutput>true</UseArtifactsOutput>
<ArtifactsPath>$(MSBuildThisFileDirectory)artifacts</ArtifactsPath>
</PropertyGroup>
<PropertyGroup>
<!-- The Roslyn version is the suffix of the project file name, e.g. Meziantou.Analyzer.roslyn4.8.csproj.
The projects that are not specific to a Roslyn version use the default version.
The version specific projects use TreatAsLocalProperty="RoslynVersion" so that /p:RoslynVersion cannot override it. -->
<!-- The default version must be the latest supported one, the CI checks it -->
<DefaultRoslynVersion>roslyn5.9</DefaultRoslynVersion>
<RoslynVersion>$([System.Text.RegularExpressions.Regex]::Match($(MSBuildProjectName), 'roslyn[0-9.]+$'))</RoslynVersion>
<RoslynVersion Condition="'$(RoslynVersion)' == ''">$(DefaultRoslynVersion)</RoslynVersion>
<!-- The Roslyn packages are versioned after the Roslyn version, e.g. roslyn4.8 uses 4.8.0 ("roslyn" is 6 characters) -->
<RoslynPackageVersion>$(RoslynVersion.Substring(6)).0</RoslynPackageVersion>
</PropertyGroup>
<PropertyGroup>
<LangVersion>preview</LangVersion>
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
<MeziantouPolyfill_IncludedPolyfills>*</MeziantouPolyfill_IncludedPolyfills>
</PropertyGroup>
<PropertyGroup>
<PackageProjectUrl>https://github.com/meziantou/Meziantou.Analyzer</PackageProjectUrl>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Meziantou.Polyfill" Version="1.0.164">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>