Open TonyWuAGL opened 3 months ago
We ran into similiar issue. For us, the problem was that our deployment pipeline was publishing the entire VS solution to an output folder (no longer supported. check your build log far a related warning). This included unit tests and all their dependencies. We solved the problem by changing the pipeline to publish only the Function App project (e.g. dotnet publish .\FunctionApp1).
That you're seeing an assembly load error on something named *.TestPlatform.* in the deployed application is a tell that you may have the same problem we did.
Describe the issue when I try to call the swagger endpoint no matter is RenderSwaggerUI or RenderSwaggerDocument is all return messages: "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." However is worked in the local environment. And been looking inside the code from function app, nowhere has been used Microsoft.VisualStudio.TestPlatform.ObjectModel
To Reproduce Steps to reproduce the behavior:
Expected behavior Show swagger ui page.
Environment (please complete the following information, if applicable):