Erick Boshoff
Erick Boshoff

Reputation: 1583

Can't load .Net Core Web API Assembly in NSwagStudio

I seem to have a problem loading .Net Core Web API assembly in NSwagStudio. I have a reference package (NuGet) for 'Microsoft.AspNetCore.Mvc (1.1.2)' in my project but this seems to break the load process on NSwagStudio.

See this example:

enter image description here

I am using VS 2017 and the project is running .Net Core version 1.1. I also tried doing the following:

https://github.com/NSwag/NSwag/wiki/WebApiAssemblyToSwaggerGenerator

It did not work, any advice would much be appreciated.

Upvotes: 1

Views: 1035

Answers (1)

Rico Suter
Rico Suter

Reputation: 11868

Just publish the project to filesystem so that all required dlls are in the output directory. For .net core you need to add the publish path to the references setting.

Or add the nuget cache to the references path.

Upvotes: 1

Related Questions