Azure / azure-functions-openapi-extension

This extension provides an Azure Functions app with Open API capability for better discoverability to consuming parties
https://www.nuget.org/packages/Microsoft.Azure.WebJobs.Extensions.OpenApi/
MIT License
370 stars 196 forks source link

Deployment from release pipeline fails #538

Open samimw opened 1 year ago

samimw commented 1 year ago

I have version 1.5.0 installed in a .NET 7.0 azure isolated-version, when publishing it to azure from Visual Studio I can browse to swagger/ui and works fine.

Doing the same from release pipelines with "Azure Functions" task I get below error when browsing to above location (it is a Linux based system):

Could not load file or assembly '/home/site/wwwroot/Microsoft.Azure.Functions.Worker.Extensions.dll'. The system cannot find the file specified.

justinyoo commented 1 year ago

@samimw Thanks for the issue. If you were able to deploy through Visual Studio, it should be also working fine on the CI/CD pipeline. But to make sure, would you please deploy your function app through Azure CLI on your local machine?

All your binary files should go under the /home/site/wwwroot/bin, rather than /home/site/wwwroot.

samimw commented 1 year ago

@justinyoo after upgrading dlls am getting a new error about missing dll - I have got a xunit test project

Could not load file or assembly 'Microsoft.VisualStudio.TestPlatform.ObjectModel, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.