canton7 / Stylet

A very lightweight but powerful ViewModel-First MVVM framework for WPF for .NET Framework and .NET Core, inspired by Caliburn.Micro.
MIT License
981 stars 143 forks source link

Add a new template creating ViewModels and Views folders #176

Closed ShuhuaGao closed 3 years ago

ShuhuaGao commented 3 years ago

Refer to #172. Also, this template supports the -n option of dotnet new to apply a custom project name, e.g., dotnet new stylet-vvm -n HelloWorld creates a project with name HelloWorld.

canton7 commented 3 years ago

Hi, do you have a particular need for this? What's the motivation for submitting it?

Remember that you're asking me to finish this off (currently there's no way to build it into a nuget package, it won't be built by the CI, there's no documentation for it, etc) and maintain it forever. I'm happy to do this if we actually agree that there's a need for it. The place for that discussion is in an issue, before you go to the effort of writing code. Thanks!

ShuhuaGao commented 3 years ago

Hi, well, I am afraid it is mainly a personal taste to avoid moving the generated ShellView related files into corresponding directories.

Your explanation makes sense. I will keep it only in my own fork then.

canton7 commented 3 years ago

Cool, keeping the template local and under your control is probably for the best in that case: that also means that you can make yur own personal modifications which wouldn't make sense to a wider audience, and also make changes without waiting several months for the next release of Stylet!