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
Describe the issue
Swagger UI works fine without Microsoft.Extensions.Logging.Abstractions 3.1.x but as soon as you need a package that depends on this, Swagger UI breaks with this error:
[2021-10-13T21:27:22.743Z] Executing 'Functions.RenderSwaggerUI' (Reason='This function was programmatically called via the host APIs.', Id=8f9c9178-c476-4b1e-8809-ff4c74d74ad5)
[2021-10-13T21:27:22.751Z] SwaggerUI page was requested.
[2021-10-13T21:27:22.830Z] Executed 'Functions.RenderSwaggerUI' (Succeeded, Id=8f9c9178-c476-4b1e-8809-ff4c74d74ad5, Duration=102ms)
[2021-10-13T21:27:23.012Z] Executing 'Functions.RenderSwaggerDocument' (Reason='This function was programmatically called via the host APIs.', Id=c8482795-88c8-46cc-a08e-a6414578a812)
[2021-10-13T21:27:23.015Z] swagger.json was requested.
[2021-10-13T21:27:23.026Z] Could not load file or assembly 'Microsoft.Extensions.Logging.Abstractions, Version=3.1.20.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.
[2021-10-13T21:27:23.078Z] Executed 'Functions.RenderSwaggerDocument' (Succeeded, Id=c8482795-88c8-46cc-a08e-a6414578a812, Duration=70ms)
[2021-10-13T21:27:25.339Z] Host lock lease acquired by instance ID '000000000000000000000000A1B8A49E'.
To Reproduce
Steps to reproduce the behavior:
Create a new Azure Functions project with .NET Core 3.1 LTS and select HTTP function with OpenAPI template
Compile and run the project and verify that Swagger UI works
Use Nuget package manager to install Microsoft.Extensions.Logging.Abstractions 3.1.20
Recompile and run project and try to browse Swagger UI
Expected behavior
Swagger UI should work as per before
Screenshots
Environment (please complete the following information, if applicable):
Describe the issue
Swagger UI works fine without Microsoft.Extensions.Logging.Abstractions 3.1.x but as soon as you need a package that depends on this, Swagger UI breaks with this error:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Swagger UI should work as per before
Screenshots
![image](https://user-images.githubusercontent.com/4617866/137215707-43b2847e-cd3c-4d40-ad9f-995291a66704.png)
Environment (please complete the following information, if applicable):
Source code
https://github.com/lahsrah/FunctionAppWithOpenApi
The text was updated successfully, but these errors were encountered: