[@typespec/http-server-csharp] 1.15.0 : generated Program.cs is a MVC one not a WebAPI? #11868
Replies: 2 comments
|
In ASP.NET Core, “MVC” and “Web API” are not separate hosting models. A generated |
|
Hello! As a matter of fact, the generated Program.cs includes this:
And here is one of my generated controller : `// Generated by @typespec/http-server-csharp using LodelApi; namespace LodelApi.Controllers; [ApiController] } |
Uh oh!
There was an error while loading. Please reload this page.
I'm starting to learn the .NET/API/Typespec ecosystem, so my question is kind of certainly dumb. Why generate MVC Program.cs and not for WebAPI? (in packages/http-server-csharp/src/components/project/program.tsx)
All reactions