Replace FxCopAnalyzers with NetAnalyzers (#6835)
This commit is contained in:
Родитель
3f3cb7401c
Коммит
938a3f5be5
|
@ -10,7 +10,7 @@
|
|||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.0.0">
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="8.0.0">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
|
|
|
@ -109,7 +109,7 @@ namespace Microsoft.Bot.Builder
|
|||
|
||||
if (!pollingParams.SentToken)
|
||||
{
|
||||
pollingHelper.Logger.LogInformation("PollForTokenAsync completed without receiving a token", pollingHelper.Activity);
|
||||
pollingHelper.Logger.LogInformation("PollForTokenAsync completed without receiving a token");
|
||||
}
|
||||
|
||||
stopwatch.Stop();
|
||||
|
@ -118,7 +118,7 @@ namespace Microsoft.Bot.Builder
|
|||
catch (Exception ex)
|
||||
#pragma warning restore CA1031 // Do not catch general exception types
|
||||
{
|
||||
pollingHelper.Logger.LogError(ex, "PollForTokenAsync threw an exception", connectionName);
|
||||
pollingHelper.Logger.LogError(ex, "PollForTokenAsync threw an exception");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -214,7 +214,7 @@ namespace Microsoft.Bot.Builder
|
|||
pollingParams.ShouldEndPolling = true;
|
||||
pollingParams.SentToken = true;
|
||||
|
||||
Logger.LogInformation("PollForTokenAsync completed with a token", Activity);
|
||||
Logger.LogInformation("PollForTokenAsync completed with a token");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче