Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

defaultName option not working as expected with Item templates #495

Open
egvijayanand opened this issue May 31, 2021 · 1 comment
Open

Comments

@egvijayanand
Copy link

defaultName option not working as expected with .NET CLI Item templates.

Have defined a defaultName with a valid value in the template.json, but it is never used when a name is not provided while invoking the dotnet new command.

The value for the name always defaults to the current folder name.

@egvijayanand
Copy link
Author

Have tried with both stable .NET 5 and .NET 6 Preview 4, results are one and the same, for item templates, it always defaults to the current folder name if value not specified for both .NET and Custom templates.

To simulate the issue, run the following command:

dotnet new razorcomponent

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant