Renaming Umbraco Cloud Solution (v17)

The dotnet new umbracocloud template for v17 creates the project locally, but doesn’t ask for the new project name and so creates the standard UmbracoProject folder, solution and namespace.

I’ve tried it on Mac and Windows, am I missing something obvious?

Are you referring to this https://www.nuget.org/packages/umbracocloud/ ?

Hi Tony, yes that’s the one

Hi @mttblss

I don’t think there is a way using the cli to do this with the umbracocloud template like you can with the standard template installs.

I presume your taking a clone from a cloud repo which adds a default installation of the project on setup with the UmbracoProject by default.

In the docs it explains how to rename the projects files Working with a Local Clone | Cloud | Umbraco Documentation hope this helps!

1 Like

Hi @jawood1, thanks, that’s exactly what I’ve done! I was just looking for the easy route, and with an eye on future projects too

That package is something I made to automate the manual work, but it only works on new Cloud projects, you can’t use it to modify existing ones.

Thanks Tony, and thanks for the offline chat too.

For anyone else (including myself in the future :wink: ), it looks likely that the problem is that I created the Development and Staging environments before I tried to use the template to rename the solution.

Next time the recommended sequence is to create the new UC project, then clone it using the the umbracocloud template and that should then show the options to rename the solution and project files. Then the Development and Staging environments can be create…

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.