Add `AnalysisLevel` to Common.props (#3960)

* add AnalysisLevel to Common.props

* fix CA2017
This commit is contained in:
Timothy Mothra 2022-12-02 12:42:56 -08:00 committed by GitHub
parent 2116966171
commit dfd1f25c95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 2 deletions

View File

@ -6,6 +6,7 @@
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)debug.snk</AssemblyOriginatorKeyFile> <AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)debug.snk</AssemblyOriginatorKeyFile>
<DefineConstants>$(DefineConstants);SIGNED</DefineConstants> <DefineConstants>$(DefineConstants);SIGNED</DefineConstants>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild> <EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<AnalysisLevel>latest-All</AnalysisLevel>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'"> <PropertyGroup Condition="'$(Configuration)'=='Debug'">

View File

@ -98,7 +98,7 @@ namespace Utils.Messaging
} }
catch (Exception ex) catch (Exception ex)
{ {
this.logger.LogError(ex, "Failed to extract trace context: {ex}"); this.logger.LogError(ex, "Failed to extract trace context.");
} }
return Enumerable.Empty<string>(); return Enumerable.Empty<string>();

View File

@ -6,7 +6,6 @@
<TargetFrameworks>net7.0;net6.0</TargetFrameworks> <TargetFrameworks>net7.0;net6.0</TargetFrameworks>
<TargetFrameworks Condition="$(OS) == 'Windows_NT'">$(TargetFrameworks);net462</TargetFrameworks> <TargetFrameworks Condition="$(OS) == 'Windows_NT'">$(TargetFrameworks);net462</TargetFrameworks>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<AnalysisLevel>latest-all</AnalysisLevel>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup> </PropertyGroup>