RicoSuter / NSwag

The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.
http://NSwag.org
MIT License
6.78k stars 1.29k forks source link

Cannot generate TypeScript client without .NET Core 2.1 #3965

Open Grauenwolf opened 2 years ago

Grauenwolf commented 2 years ago

I ran into a problem trying to generate a TypeScript client using NSwag Studio. It is complaining about .NET Core 2.1 not being installed. Unfortunately I can't install that runtime on my work computer because it is no longer supported by Microsoft.

image

Can we get a new release that targets .NET 3.1 or later?

Grauenwolf commented 2 years ago

Actually, this is a misleading error message.

You just need to change the runtime drop-down to "NET60", even if you aren't creating a .NET client.

ovska commented 2 years ago

It is slightly confusing, but the "runtime" refers to the runtime nswag uses to generate the client, not the runtime that uses the client.

Grauenwolf commented 2 years ago

Well yea, I figured that it now. Where were you 8 days ago?

This needs an updated error message and a new default for the drop-down. But I don't know the code well enough to do it myself.