Umbraco Cloud Migrate Solution - Must I use UmbracoProject or can I specity solution file?
I am looking at the git repo generated when I created an umbraco cloud project. I see the following in the .umbraco file:
[project]
base = "src/UmbracoProject"
csproj = "UmbracoProject.csproj"
Since I have an existing project src/MyUmbraco.Site in a solution that has other library project, Can I switch the .umbraco file to something like?:
[solution]
base = "src"
sln = "MyUmbraco.sln"
Where the solution contains the MyUmbraco.Site project and the library projects.
Or must I rename the project to UmbracoProject? Do I need to do something else to add the library projects?
UPDATE: Both of the answers below are correct. I marked the second one as the answer, because I used the nuget package to generate a multi project solution; that showed me what should be in the .umbraco file. The structure of the .umbraco file should reference the project file and not the solution as I was guessing above:
[project]
base = "src/CustomProjectFolder"
csproj = "CustomProject.Site.csproj"
Umbraco Cloud Migrate Solution - Must I use UmbracoProject or can I specity solution file?
I am looking at the git repo generated when I created an umbraco cloud project. I see the following in the .umbraco file:
Since I have an existing project src/MyUmbraco.Site in a solution that has other library project, Can I switch the .umbraco file to something like?:
Where the solution contains the MyUmbraco.Site project and the library projects.
Or must I rename the project to UmbracoProject? Do I need to do something else to add the library projects?
UPDATE: Both of the answers below are correct. I marked the second one as the answer, because I used the nuget package to generate a multi project solution; that showed me what should be in the .umbraco file. The structure of the .umbraco file should reference the project file and not the solution as I was guessing above:
You can rename UmbracoProject to a custom project name.
You indeed need to change it in the .umbraco file, as well as Startup and Program files' namespaces.
Don't forget to rename the Umbraco Project folder in the file explorer.
If you're adding a new solution instead of renaming you need to delete the Umbraco Project folder :)
Hope this helps :)
This tool will do all the hard work for you to make sure you get a nice local setup: https://www.nuget.org/packages/umbracocloud
is working on a reply...