Skip to content

Templates' help is not shown if ran in the context of the existing project #332

Closed

Description

@thesmithee

Steps to repro

  1. dotnet new console -o ./c1
  2. cd c1
  3. dotnet new mvc --help

Expected result

Template Instantiation Commands for .NET Core CLI.

Usage: dotnet new [arguments] [options]

Arguments:
  template  The template to instantiate.

Options:
  -l|--list         List templates containing the specified name.
  -lang|--language  Specifies the language of the template to create
  -n|--name         The name for the output being created. If no name is specified, the name of the current directory is used.
  -o|--output       Location to place the generated output.
  -h|--help         Displays help for this command.
  -all|--show-all   Shows all templates


MVC ASP.NET Core Web Application (C#)
Author: Microsoft
Options:
  -au|--auth           The type of authentication to use
                           None          - No authentication
                           Individual    - Individual authentication
                       Default: None

  -uld|--use-local-db  Whether or not to use LocalDB instead of SQLite
                       bool - Optional
                       Default: false

  -f|--framework
                           netcoreapp1.0    - Target netcoreapp1.0
                           netcoreapp1.1    - Target netcoreapp1.1
                       Default: netcoreapp1.0

Actual result

        - [MVC ASP.NET Core Web Application] is a project template. By default it's not created in a target location containing a project. Force creation with the -all flag.

Template Instantiation Commands for .NET Core CLI.

Usage: dotnet new [arguments] [options]

Arguments:
  template  The template to instantiate.

Options:
  -l|--list         List templates containing the specified name.
  -lang|--language  Specifies the language of the template to create
  -n|--name         The name for the output being created. If no name is specified, the name of the current directory is used.
  -o|--output       Location to place the generated output.
  -h|--help         Displays help for this command.
  -all|--show-all   Shows all templates


Templates      Short Name      Language      Tags
-------------------------------------------------

Examples:
    dotnet new mvc --auth None --framework netcoreapp1.0
    dotnet new nugetconfig
    dotnet new --help

Activity

  1. thesmithee commented on Feb 15, 2017

    @thesmithee
    Author
  2. mlorbetske commented on Feb 15, 2017

    @mlorbetske

    This is fixed with #307

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions