Skip to content

OpenAPI UI dll load failure from release pipeline only when test project is included in build #333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ssunkari opened this issue Dec 12, 2021 · 2 comments

Comments

@ssunkari
Copy link

Describe the issue
When Azure function project with an nunit test project is build and published to Azure app service. I get below error
Could not load file or assembly 'D:\home\site\wwwroot\bin\Demo.Fn.Tests.dll'. The system cannot find the file specified.

However I have observed if the test project is removed from the solution swagger UI loads fine. I'm assuming document generation is scanning solution file and complaining about the test projects since they are included in sln file.

I'm using Azure functions v3, Microsoft.Azure.WebJobs.Extensions.OpenApi v1.0.0.
App deployed to Azure App Services.

Bizarrely swagger UI loads fine when run locally from VisualStudio.

Can you please advise if there is any activity happening around this problem, I have seen similar issue reported else where
https://githubmemory.com/repo/Azure/azure-functions-openapi-extension/issues/196

@justinyoo
Copy link
Contributor

@ssunkari Thanks for the issue! It's a known one. Please refer to #306 in the meantime.

@justinyoo
Copy link
Contributor

Related to #196

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants