Aspnetcore.docs: Scaffolding fails - Install Package Microsoft.VisualStuido.Web.CodeGeneration.Design required

Created on 15 Nov 2020  Â·  6Comments  Â·  Source: dotnet/AspNetCore.Docs

Scaffolding fails - Install Package Microsoft.VisualStuido.Web.CodeGeneration.Design required.
Should this be included in the tutorial someplace before running scaffolding?


Document Details

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

P0 Source - Docs.ms doc-bug

All 6 comments

Are you using Visual Studio? If your VS is up to date, it will add this package.

If you're using VSC, it's listed

@Rick-Anderson, I verified Visual Studio for Mac version 8.9 (current version as of today) is requiring an install step for dotnet-aspnet-codegenerator. I would have expected it to be included as well.

Following this topic's current instruction for VS for Mac, (using VS for Mac version 8.9) the scaffolding command cannot be run. It generates an error indicating dotnet-aspnet-codegenerator does not exist.

However, once the following install is run in the terminal on the command line then the scaffolding runs:
dotnet tool install --global dotnet-aspnet-codegenerator --version 5.0.0

I will fix this in #20530

@Smith-Rick, Thanks very much for pointing out the issue. We greatly appreciate that you took the time to let us know! We are getting this fixed.

Visual Studio 2019 v16.8.1

I verified Visual Studio for Mac version 8.9 (current version as of today) is requiring an install step for dotnet-aspnet-codegenerator.

Open a VS Mac bug and include the bug # here.

Potential bugs in the ASP.NET Core framework and product feedback can be reported at dotnet/aspnetcore issues (include full repro steps and cross-link to a repro project in GH when appropriate). For Visual Studio, use the Report a Problem gesture or Suggest a Feature gesture within VS, which open internal issues for the VS team. For Visual Studio Code, you can open an issue at microsoft/vscode issues.

Was this page helpful?
0 / 5 - 0 ratings