<Project> <PropertyGroup> <AnalysisLevel>6</AnalysisLevel> <AnalysisModeGlobalization>Recommended</AnalysisModeGlobalization> <AnalysisModeMaintainability>Recommended</AnalysisModeMaintainability> <AnalysisModeReliability>Recommended</AnalysisModeReliability> <AnalysisModePerformance>Recommended</AnalysisModePerformance> <AnalysisModeUsage>Recommended</AnalysisModeUsage> <EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild> <CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled> <ContinuousIntegrationBuild Condition=" '$(GITLAB_CI)' != '' Or '$(APPVEYOR)' != '' ">true</ContinuousIntegrationBuild> <EnableNETAnalyzers>true</EnableNETAnalyzers> <ErrorReport>prompt</ErrorReport> <Features>strict</Features> <IsTargetingNetFramework>$(TargetFramework.StartsWith("net4"))</IsTargetingNetFramework> <LangVersion>10.0</LangVersion> <ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> <NoWarn>SA0001</NoWarn> <Nullable>enable</Nullable> <PlatformTarget>AnyCPU</PlatformTarget> <RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> <DebugSymbols>true</DebugSymbols> <DebugType>portable</DebugType> <DefineConstants>DEBUG;TRACE</DefineConstants> <Optimize>false</Optimize> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)' == 'Release' "> <DebugSymbols>false</DebugSymbols> <DebugType>portable</DebugType> <DefineConstants>TRACE</DefineConstants> <Optimize>true</Optimize> <PathMap>$(MSBuildProjectDirectory)=${$(MSBuildProjectName)}/</PathMap> </PropertyGroup> <PropertyGroup Condition=" '$(MachineExtraCompilationFlag)' != '' "> <DefineConstants>$(DefineConstants);$(MachineExtraCompilationFlag)</DefineConstants> </PropertyGroup> <ItemGroup> <PackageReference Include="DotNetAnalyzers.DocumentationAnalyzers" PrivateAssets="all" /> <PackageReference Include="Menees.Analyzers" PrivateAssets="all" /> <PackageReference Include="Meziantou.Analyzer" PrivateAssets="all" /> <PackageReference Include="Nullable" PrivateAssets="all" /> <PackageReference Include="StyleCop.Analyzers" PrivateAssets="all" /><!-- don't forget to update .stylecop.json at the same time --> <Analyzer Include="$(MSBuildProjectDirectory)/../../References/BizHawk.Analyzer.dll" /> <GlobalAnalyzerConfigFiles Include="$(MSBuildProjectDirectory)/../../.global.editorconfig.ini" /> <AdditionalFiles Include="$(MSBuildProjectDirectory)/../../.stylecop.json" /> </ItemGroup> <PropertyGroup Condition=" $(IsTargetingNetFramework) "> <GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources> </PropertyGroup> <ItemGroup Condition=" $(IsTargetingNetFramework) "> <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" PrivateAssets="all" /> <PackageReference Include="System.Resources.Extensions" PrivateAssets="all" /> </ItemGroup> </Project>