AvaloniaUI / avalonia-dotnet-templates

Avalonia Templates for `dotnet new`
MIT License
514 stars 89 forks source link

Template namespace switch leads to strange behaviours #245

Open giulioungaretti opened 9 months ago

giulioungaretti commented 9 months ago

Describe the bug

Following the readme/docs, I go like this:

Screenshot 2024-02-06 at 10 46 13 image

Which seems wrong, if I read the template.json in the repo and I use the full parameter name. Then it seems to work as expected.

image

Am I missing something here? Should I PR the readme docs? Is it maybe a fsharp thing?

To Reproduce

dotnet new avalonia.usercontrol -n MyControl --na MyApp.Views -lang f#

Observe how the -na flag does not do what the docs says!

Avalonia Templates version

11.0.6

Avalonia version

No response

Additional context

No response