Microsoft Visual Studio Community 2019 Version 16.9.4 Windows 10 Pro
Any clue why I cannot see the Controllers menu item? This is the Asp.net core 5.0 Web API project
But I cannot see that?
New items has this:
Update
CinamaApi.csproj
<Project Sdk="Microsoft.NET.Sdk.Web"> <PropertyGroup> <TargetFramework>net5.0</TargetFramework> </PropertyGroup> <ItemGroup> <PackageReference Include="Swashbuckle.AspNetCore" Version="5.6.3" /> </ItemGroup> <ItemGroup> <Folder Include="Controllers\" /> </ItemGroup> </Project> 21 Answer
OP's feedback
Need to install ASP.NET workload when install/update the VS
Original
Based on the icon of your project, your project is not an API.
Go to your .csproj file and edit the first line into
<Project Sdk="Microsoft.NET.Sdk.Web"> Then you will scaffold item in your context menu
After a reload your project icon should become like this:
7