in terminal:
dotnet new webapi -o WebAPI
I can't see the controller:
Hi ramitaherwahd...,
Add -controllers or --use-controllers option.
dotnet new webapi -o WebAPI -controllers
OR
dotnet new webapi -o WebAPI --use-controllers
For more details refer https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-new-sdk-templates#webapi.
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.