AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

Console command to make new Razor Page project is incorrect

Open RyanTaite opened this issue 8 years ago • 2 comments

Currently states you should run the command dotnet new webapp -o RazorPagesMovie when instead it should be dotnet new razor -o RazorPagesMovie


Document Details

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

RyanTaite avatar Jun 07 '18 22:06 RyanTaite

@RyanTaite Thanks for commenting. They introduced an alias for razor ... webapp. Do you have the 2.1 SDK installed? ... The alias works with 2.1. Otherwise for 2.0, you're correct, it would be razor. If you flip the doc to "2.0" (upper-left of the page), it should flip the command back to using razor.

guardrex avatar Jun 07 '18 23:06 guardrex

Looks I don't have 2.1 installed, and only 2.0! Totally my mistake then. Thank you!

RyanTaite avatar Jun 07 '18 23:06 RyanTaite