-
Notifications
You must be signed in to change notification settings - Fork 385
/
Common.props
56 lines (56 loc) · 3.21 KB
/
Common.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
<Project>
<PropertyGroup>
<AnalysisLevel>6</AnalysisLevel>
<AnalysisModeGlobalization>Recommended</AnalysisModeGlobalization>
<AnalysisModeMaintainability>Recommended</AnalysisModeMaintainability>
<AnalysisModeReliability>Recommended</AnalysisModeReliability>
<AnalysisModePerformance>Recommended</AnalysisModePerformance>
<AnalysisModeUsage>Recommended</AnalysisModeUsage>
<EmitCompilerGeneratedFiles>false</EmitCompilerGeneratedFiles> <!-- enable to copy Roslyn Source Gemerators' outputs to $(ProjectDir)/obj/.../generated -->
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
<ContinuousIntegrationBuild Condition=" '$(GITLAB_CI)' != '' Or '$(APPVEYOR)' != '' ">true</ContinuousIntegrationBuild>
<DebugSymbols>true</DebugSymbols>
<DebugType>portable</DebugType>
<DefineConstants>$(DefineConstants);TRACE</DefineConstants>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<ErrorReport>prompt</ErrorReport>
<Features>strict</Features>
<IsTargetingNetFramework>$(TargetFramework.StartsWith("net4"))</IsTargetingNetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile> <!-- it would be nice to rename these to *.api_reference.xml or something, but it seems https://github.com/dotnet/standard/issues/614 was never fixed -->
<LangVersion>12.0</LangVersion>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<NoWarn>$(NoWarn);CS1591;SA0001</NoWarn>
<Nullable>enable</Nullable>
<PlatformTarget>AnyCPU</PlatformTarget>
<RunAnalyzersDuringBuild>true</RunAnalyzersDuringBuild>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
<Optimize>false</Optimize>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<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" />
<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>