Skip to content

Commit

Permalink
Replace FxCopAnalyzers with NetAnalyzers
Browse files Browse the repository at this point in the history
  • Loading branch information
sw-joelmut committed Jul 26, 2024
1 parent 276bb33 commit 71e8507
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libraries/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
6 changes: 3 additions & 3 deletions libraries/Microsoft.Bot.Builder/TokenResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private static async Task PollForTokenAsync(PollingHelper pollingHelper, string

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();
Expand All @@ -118,7 +118,7 @@ private static async Task PollForTokenAsync(PollingHelper pollingHelper, string
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");
}
}

Expand Down Expand Up @@ -214,7 +214,7 @@ public async Task PollForTokenAsync(PollingParams pollingParams)
pollingParams.ShouldEndPolling = true;
pollingParams.SentToken = true;
Logger.LogInformation("PollForTokenAsync completed with a token", Activity);
Logger.LogInformation("PollForTokenAsync completed with a token");
}
}
};
Expand Down

0 comments on commit 71e8507

Please sign in to comment.