-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move files during template creation and maintain project rename #1553
Comments
Plac3hold3r
changed the title
Move files during template create and maintain project rename
Move files during template creation and maintain project rename
Jun 6, 2018
Thank you @seancpeters that works perfectly. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi
I'm struggling to find documentation describing if it is possible to move files and folder during template creation while maintaining the
sourceName
auto rename of the project and folder names. Is this possible with dotnet templating?The template that I have been working on, can be found on GitHub. The use case I'm trying to cater for relates to an idea to support multiple projects structure types, for example (Related to Xamarin apps), a blank app, a single view based app or an app with a navigation menu.
Initially, I was thinking about including all the different types in a single project and excluding the files that do not relate to the chosen template option. However, this creates a bit of an issue as I lose the ability to test the template except through creating the output via the dotnet new cli. So I thought perhaps I could create a separate project on disk and move the chosen template option into the correct folder location and skip the others.
Example
SourceName = "MvxNative"
dotnet new mvxnative -n "MyApp" --scaffold-type "navigation-menu"
Perhaps there is an alternative, any help/advice would be greatly appreciated.
The text was updated successfully, but these errors were encountered: