What are the references you need to add to a project for it to be able to reference an Umbraco mvc content using Model.Content.....etc.? Or is this, or anything like it not possible?
So far I've tried umbraco.dll, Umbraco.core.dll. cms.dll and businesslogic.dll
Thanks Jan, Can't see an interfaces.dll anywhere in the Umbraco/bin folder. Niels' example looks as though it's for web forms. I'm using MVC and want to use strongly typed code if I can. Also I need to be able to traverse content, not use nodeID's as these might change.
My *real* problem is that I don't know whether people add functionality to Umbraco V7 by adding controllers and models to the Umbraco installation or whether it's done by externally referenced project with its dll dropped into the Umbraco bin folder. I'm just totally stumped on a late project because of this lack of experience/knowledge. There doesn't appear to be any documentation about project set up apart from an out of date one from Sebastiaan on web forms.
Visual Studio Project References
What are the references you need to add to a project for it to be able to reference an Umbraco mvc content using Model.Content.....etc.? Or is this, or anything like it not possible?
So far I've tried umbraco.dll, Umbraco.core.dll. cms.dll and businesslogic.dll
Thanks,
Craig
Hi Craig
Have you tried referencing interfaces.dll as well?
/Jan
Don't know if it would help to add umbraco.core.models as well according to this early v6 demo by Niels? https://github.com/hartvig/UmbracoV6APITutorial/blob/master/Umbraco.StoreImporterTutorial/ImportProducts.ascx.cs
/Jan
Thanks Jan, Can't see an interfaces.dll anywhere in the Umbraco/bin folder. Niels' example looks as though it's for web forms. I'm using MVC and want to use strongly typed code if I can. Also I need to be able to traverse content, not use nodeID's as these might change.
My *real* problem is that I don't know whether people add functionality to Umbraco V7 by adding controllers and models to the Umbraco installation or whether it's done by externally referenced project with its dll dropped into the Umbraco bin folder. I'm just totally stumped on a late project because of this lack of experience/knowledge. There doesn't appear to be any documentation about project set up apart from an out of date one from Sebastiaan on web forms.
Craig
is working on a reply...