Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have an umbraco website I've called myTemplate.
I want to copy the necessary bits into a new VS project called mySite.
I published everything from myTemplate into mySite except: publishedprofiles folder, assemblyinfo.cs and the obj folder
But when I try to run mySite in debug mode it's like all of the umbraco bits can't be found even though they are physically in mySite.
What am I missing?
Hi Ben,
Are you running mySite as an Application or WebSite in the VS?
If you running as Application you have to include in project cs files to make it work.
For the website mode, it should work just from bin or app_code folder.
Thanks,
Alex
I'm trying to run it as application. I've got all my modelsbuilder *.generate.cs files
I've got umbraco in the Bin, but it's like everything Umbraco is "missing a directive or assembly reference", or "does not exist in current context".
Figured it out. The references didn't come over. This got me where I needed to be...
Nuget Package Manager Console:
Update-Package -Id UmbracoCMS –reinstall Update-Package -Id Umbraco.ModelsBuilder.Api –reinstall
Thanks for sharing!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Duplicating Umbraco Website into a New VS Project
I have an umbraco website I've called myTemplate.
I want to copy the necessary bits into a new VS project called mySite.
I published everything from myTemplate into mySite except: publishedprofiles folder, assemblyinfo.cs and the obj folder
But when I try to run mySite in debug mode it's like all of the umbraco bits can't be found even though they are physically in mySite.
What am I missing?
Hi Ben,
Are you running mySite as an Application or WebSite in the VS?
If you running as Application you have to include in project cs files to make it work.
For the website mode, it should work just from bin or app_code folder.
Thanks,
Alex
I'm trying to run it as application. I've got all my modelsbuilder *.generate.cs files
What am I missing?
I've got umbraco in the Bin, but it's like everything Umbraco is "missing a directive or assembly reference", or "does not exist in current context".
Figured it out. The references didn't come over. This got me where I needed to be...
Nuget Package Manager Console:
Thanks for sharing!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.