Skip to content

AI template on dotnet new doesn't respond well to -n output #6051

@timheuer

Description

@timheuer

Description

When using the CLI with the new AI template, the dotnet new -n is not operating like other templates

Reproduction Steps

  1. Install the new AI template
  2. Start in a dir e.g. c:\sources\projects
  3. dotnet new aichatweb -n foochat

Expected behavior

A project located in c:\sources\projects\foochat is created

Actual behavior

A project located at c:\sources\projects is created

Regression?

No response

Known Workarounds

Use dotnet new aichatweb -o foochat works as expected

Configuration

No response

Other information

By comparison other templates interpret -n also to output folder

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-ai-templatesMicrosoft.Extensions.AI.TemplatesbugThis issue describes a behavior which is not expected - a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions