Forum Discussion

brian_beatty's avatar
brian_beatty
Occasional Visitor
2 years ago

How to embed swagger.json as a resource of a dotnet assembly

I have an externally generated swagger.json file I want to create as an embedded resource for a middleware component hosted in ,net core 6 solution. using a static file I can use the following code ...