Allow C# 10 in satellite projects, enable Analyzers on ext. tools

This commit is contained in:
YoshiRulz 2022-07-13 23:20:40 +10:00
parent 0405e6399d
commit 6f372820a7
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
4 changed files with 4 additions and 1 deletions

View File

@ -6,7 +6,7 @@
<ErrorReport>prompt</ErrorReport>
<Features>strict</Features>
<IsTargetingNetFramework>$(TargetFramework.StartsWith("net4"))</IsTargetingNetFramework>
<LangVersion>9.0</LangVersion>
<LangVersion>10.0</LangVersion>
<Nullable>enable</Nullable>
<PlatformTarget>AnyCPU</PlatformTarget>
<RunAnalyzersDuringBuild Condition=" '$(MachineRunAnalyzersDuringBuild)' == '' ">false</RunAnalyzersDuringBuild>

View File

@ -3,6 +3,7 @@
<PropertyGroup>
<CodeAnalysisRuleSet>$(ProjectDir)../../Common.ruleset</CodeAnalysisRuleSet>
<OutputPath>$(ProjectDir)bin/$(Configuration)/</OutputPath>
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
</PropertyGroup>
<ItemGroup>
<AdditionalFiles Include="$(ProjectDir)../../.stylecop.json" />

View File

@ -5,6 +5,7 @@
<Import Project="../../Common.props" />
<PropertyGroup>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems><!-- no source files; only runs below target to write ../BizHawk.Common/VersionInfo.gen.cs -->
<LangVersion>9.0</LangVersion>
<NoWarn>$(NoWarn);CS2008</NoWarn>
</PropertyGroup>
<Target Name="PreBuild" AfterTargets="PreBuildEvent">

View File

@ -5,6 +5,7 @@
<CodeAnalysisRuleSet>$(ProjectDir)../../Common.ruleset</CodeAnalysisRuleSet>
<DefineConstants>$(DefineConstants);AVI_SUPPORT</DefineConstants>
<DocumentationFile>$(ProjectDir)bin/doc_comments.xml</DocumentationFile>
<LangVersion>9.0</LangVersion>
<MSBuildWarningsAsMessages>NU1702</MSBuildWarningsAsMessages>
<NoWarn>CS1573;CS1591</NoWarn>
<OutputPath>$(ProjectDir)../../output/dll</OutputPath>