-
Notifications
You must be signed in to change notification settings - Fork 2
/
Directory.Build.props
73 lines (73 loc) · 3.74 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
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
<Project>
<PropertyGroup>
<Copyright>Copyright © 2013-2024 Akka.NET Project</Copyright>
<NoWarn>$(NoWarn);CS1591;NU1701;CA1707;</NoWarn>
<VersionPrefix>0.2.3</VersionPrefix>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<Authors>Akka.NET Team</Authors>
<PackageProjectUrl>https://github.com/akkadotnet/akka.analyzers</PackageProjectUrl>
<PackageReleaseNotes>* [AK1002: Fix false positive detection](https://github.com/akkadotnet/akka.analyzers/pull/72)
* [Add multi target support for Roslyn 3.11, 4.4, 4.6, and 4.8](https://github.com/akkadotnet/akka.analyzers/pull/73)
* [AK1001: Rule removed due to #65](https://github.com/akkadotnet/akka.analyzers/pull/74)</PackageReleaseNotes>
<PackageTags>akka.net, akka.analyzers, akakdotnet, roslyn, analyzers</PackageTags>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<PackageIcon>logo.png</PackageIcon>
<Description>
Akka.NET Roslyn Analyzers designed to help fix frequent, recurring design problems that may occur
in end-user code bases. Also includes helpful upgrade suggestions for migrating between minor and
major versions of Akka.NET.
</Description>
</PropertyGroup>
<PropertyGroup Label="Build">
<LangVersion>latest</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RoslynVersion>4.8.0</RoslynVersion>
</PropertyGroup>
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)\logo.png" Pack="true" Visible="false" PackagePath="\" />
<None Include="$(MSBuildThisFileDirectory)\README.md" Pack="true" Visible="false" PackagePath="\" />
</ItemGroup>
<!-- ======================================== -->
<!-- Production-specific properties and items -->
<Choose>
<When Condition=" !$(MSBuildProjectName.Contains('.Tests')) ">
<PropertyGroup>
<AnalysisLevel>latest-All</AnalysisLevel>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
</PropertyGroup>
</When>
</Choose>
<Choose>
<When Condition="$(MSBuildProjectName.Contains('.Tests'))">
<ItemGroup>
<!-- Download packages referenced by ReferenceAssembliesHelper -->
<PackageDownload Include="Akka.Cluster.Sharding" Version="[1.5.15]" />
</ItemGroup>
</When>
</Choose>
<PropertyGroup Condition="$(MSBuildProjectName.StartsWith('Akka.Analyzers.Roslyn'))">
<AssemblyName>Akka.Analyzers</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition="$(MSBuildProjectName.StartsWith('Akka.Analyzers.Fixes.Roslyn'))">
<AssemblyName>Akka.Analyzers.Fixes</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition="$(MSBuildProjectName.Contains('Roslyn311'))">
<DefineConstants>$(DefineConstants);ROSLYN_3_11;ROSLYN_3_11_OR_GREATER</DefineConstants>
<RoslynVersion>3.11.0</RoslynVersion>
</PropertyGroup>
<PropertyGroup Condition="$(MSBuildProjectName.Contains('Roslyn44'))">
<DefineConstants>$(DefineConstants);ROSLYN_4_4;ROSLYN_3_11_OR_GREATER;ROSLYN_4_4_OR_GREATER</DefineConstants>
<RoslynVersion>4.4.0</RoslynVersion>
</PropertyGroup>
<PropertyGroup Condition="$(MSBuildProjectName.Contains('Roslyn46'))">
<DefineConstants>$(DefineConstants);ROSLYN_4_6;ROSLYN_3_11_OR_GREATER;ROSLYN_4_4_OR_GREATER;ROSLYN_4_6_OR_GREATER</DefineConstants>
<RoslynVersion>4.6.0</RoslynVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(RoslynVersion)' == '4.8.0' ">
<DefineConstants>$(DefineConstants);ROSLYN_4_8;ROSLYN_3_11_OR_GREATER;ROSLYN_4_4_OR_GREATER;ROSLYN_4_6_OR_GREATER;ROSLYN_4_8_OR_GREATER</DefineConstants>
</PropertyGroup>
</Project>