You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build and should correctly see error error CA1848: For improved performance, use the LoggerMessage delegates instead of calling 'LoggerExtensions.LogInformation
Now add <PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.OpenApi" Version="1.5.1" />
Describe the issue
Code analysis does not run when this package is in use
To Reproduce
Steps to reproduce the behavior:
func init --worker-runtime "dotnet-isolated" --target-framework "net8.0"
func new --name "HelloWorldFunction" --template "HTTP trigger"
error CA1848: For improved performance, use the LoggerMessage delegates instead of calling 'LoggerExtensions.LogInformation
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.OpenApi" Version="1.5.1" />
Full CS proj
Comment out
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.OpenApi" Version="1.5.1" />
and the CA correctly errors.Expected build time error:
Environment (please complete the following information, if applicable):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: