dotnet / dotnet/AspNetCore.Docs

Scaffold a controller instructions foe VS Code for .Net 6.0

Open
#29,303 3 comments 0 reactions 1 assignee Claimed by @wadepickett View on GitHub
area-tutorials doc-bug seQUESTered Source - Docs.ms
Dominant language
C#
Stars
13.1k
Forks
24.6k
Avg merge
1d 3h
Merged PRs (30d)
97

Description

The Scaffold a controller instructions for VS Code for the .Net 6.0 projects is having issues as some packages were not available for .net6.0 and some 7.0 packages could be installed for the .net6.0 project.

The below tool is not available for .Net6.0

`dotnet tool install -g dotnet-aspnet-codegenerator`

The below command did not work saying no .net 6.0 versions

`dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design`

The below two commands installed the 7.0 version packages for .net6.0 project.

`dotnet add package Microsoft.EntityFrameworkCore.Design`
`dotnet add package Microsoft.EntityFrameworkCore.SqlServer`

---
#### Document Details

⚠ *Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.*

* ID: 583ae3e7-5915-f22b-e54c-6c100cf2a7da
* Version Independent ID: 95f2549e-29f9-e31a-b4d0-432b971643ff
* Content: [Tutorial: Create a web API with ASP.NET Core](https://learn.microsoft.com/en-us/aspnet/core/tutorials/first-web-api?view=aspnetcore-6.0&tabs=visual-studio-code)
* Content Source: [aspnetcore/tutorials/first-web-api.md](https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/tutorials/first-web-api.md)
* Product: **aspnet-core**
* Technology: **aspnetcore-tutorials**
* GitHub Login: @wadepickett
* Microsoft Alias: **wpickett**

---
[Associated WorkItem - 97035](https://dev.azure.com/msft-skilling/Content/_workitems/edit/97035)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.