Dotnet core Invalid input switch: -t

I am trying to figure out how the dotnet core works, and therefore create some projects to play with it. I found a guide where they said that I had to run "dotnet new -t web" in order to create a more fully functional web application. But when I do this, he just says:

Invalid input switch:
  -t 

Template Instantiation Commands for .NET Core CLI.

Usage: dotnet new [arguments] [options]

Arguments:
  template  The template to instantiate.

Did they change it? And why don't any documents appear when I run "dotnet new", but only if I do "dotnet new mvc" or "dotnet new web". I am using Visual Studio Code.

Thanks in advance.

+4
source share
2 answers

, CLI project.json csproj. .

dotnet new:

, .

dotnet new <TEMPLATE> [-lang|--language] [-n|--name] [-o|--output] [-all|--show-all] [-h|--help] [Template arguments]
dotnet new <TEMPLATE> [-l|--list]
dotnet new [-all|--show-all]
dotnet new [-h|--help]

:

dotnet new mvc                   ==> New C# MVC app
dotnet new console -lang f#      ==> New F# console app
+5

, , , clots dotnet. -t . -.

new :

dotnet new <TEMPLATE> [-lang|--language] [-n|--name] [-o|--output] [-all|--show-all] [-h|--help] [Template arguments]
dotnet new <TEMPLATE> [-l|--list]
dotnet new [-all|--show-all]
dotnet new [-h|--help]

dotnet new ( VS Code ).

, .

0

Source: https://habr.com/ru/post/1672337/


All Articles