Skip to content

Commit

Permalink
Update to current Roslyn analyzers
Browse files Browse the repository at this point in the history
Keep in mind 'latest' doesn't work with the VS 2022/.NET 6 preview, and needs to be changed to an actual version number when using it to see output from the analyzers.
  • Loading branch information
ItEndsWithTens committed Sep 22, 2021
1 parent aaf0ac3 commit 0383754
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 4 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
performance, and that full and pdbonly are the same. -->
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>

<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisLevel>latest-all</AnalysisLevel>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
</PropertyGroup>

<ItemGroup Condition="$(MSBuildProjectName) != '_build'">
Expand Down
5 changes: 0 additions & 5 deletions src/Arbatel.Core/Arbatel.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DefineConstants>TRACE;DEBUG</DefineConstants>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
Expand All @@ -30,10 +29,6 @@
<PackageReference Include="Eto.Forms" Version="2.5.2" />
<PackageReference Include="Eto.OpenTK" Version="0.1.2" />
<PackageReference Include="Eto.Veldrid" Version="0.1.0" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="nucs.JsonSettings" Version="1.0.7" />
<PackageReference Include="OpenTK" Version="3.2.0" />
<PackageReference Include="Veldrid" Version="4.7.0" />
Expand Down

0 comments on commit 0383754

Please sign in to comment.