nswag issue with .net 6 #506
Replies: 3 comments
-
I was having the same problem but it was about the Dependency Injection. I forgot to register the interface and the service at the container. |
Beta Was this translation helpful? Give feedback.
-
@TweakStories I had the same issue on .NET 6. If you look at the error log you'll see that the nswag package has a dependency on .NET 5:
I was able to run the project successfully after additionally installing .NET 5. I'm on Ubuntu so I used these instructions, and specified aspnetcore-runtime-5.0 instead. Hope that helps |
Beta Was this translation helpful? Give feedback.
-
Use |
Beta Was this translation helpful? Give feedback.
-
Hello,
When I try out the template I get this error:
Severity Code Description Project File Line Suppression State
Error MSB3073 The command "dotnet ".nuget\packages\nswag.msbuild\13.9.4\build../tools/Net50/dotnet-nswag.dll" run nswag.json /variables:Configuration=Debug" exited with code -2147450730. WebUI
Did not change any of the code after creating a project.
Does anyone know a fix for this? Thank you very much.
Beta Was this translation helpful? Give feedback.
All reactions