Add `AnalysisLevel` to Common.props (#3960)
* add AnalysisLevel to Common.props * fix CA2017
This commit is contained in:
parent
2116966171
commit
dfd1f25c95
|
|
@ -6,6 +6,7 @@
|
|||
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)debug.snk</AssemblyOriginatorKeyFile>
|
||||
<DefineConstants>$(DefineConstants);SIGNED</DefineConstants>
|
||||
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
|
||||
<AnalysisLevel>latest-All</AnalysisLevel>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ namespace Utils.Messaging
|
|||
}
|
||||
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>();
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@
|
|||
<TargetFrameworks>net7.0;net6.0</TargetFrameworks>
|
||||
<TargetFrameworks Condition="$(OS) == 'Windows_NT'">$(TargetFrameworks);net462</TargetFrameworks>
|
||||
<Nullable>enable</Nullable>
|
||||
<AnalysisLevel>latest-all</AnalysisLevel>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue