Share via

Swagger file generation failed for Http trigger function app with cosmos db nuget package

95132786 2 Reputation points
2022-06-15T10:05:52.73+00:00

I have an isolated dotnet 6 function app which uses cosmos db nuget package ("Microsoft.Azure.Cosmos" Version="3.26.2"). I am not able to generate swagger document for this as I am getting runtime exception Bad IL format. The format of the file 'Cosmos.CRTCompat.dll' is invalid.

Is there any solution or workaround for this problem?

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

Azure Cosmos DB
Azure Cosmos DB

An Azure NoSQL database service for app development.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.