I'm quite familiar with the Hybrid Framework for Umbarco V6 and now I'm working with V7 which looks great..
I've come accross the new Zbu ModelsBuilder functionality and I'm wondering how I should be using it.
Do I just create a new document type in Umbraco, build and it'll automatically create the required class in my project?
Here it says I need to set the url to my site, username and password Tools | Options | Zbu | ModelsBuilder Options but I don't seem to have Zbu listed anywhere under Options.
I'm using Hybrid Framework for Umbraco v7 and Visual Studio 2012.
To use the ModelsBuilder in the way you have described requires that the ModelsBuilder Visual Studio Extension is installed. You can download the extension from:
Double Click on the downloaded file to install the extension. After installing the extension you will see Zbu listed under Tools | Options and you can configure the Custom Tool.
After installing -> click on "Run custom tool" then get below error.
ZbuModelsBuilder: ZbuModelsBuilder failed to generate code: FileNotFoundException: Could not load file or assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
How to use Zbu ModelsBuilder
I'm quite familiar with the Hybrid Framework for Umbarco V6 and now I'm working with V7 which looks great..
I've come accross the new Zbu ModelsBuilder functionality and I'm wondering how I should be using it.
Do I just create a new document type in Umbraco, build and it'll automatically create the required class in my project?
Here it says I need to set the url to my site, username and password Tools | Options | Zbu | ModelsBuilder Options but I don't seem to have Zbu listed anywhere under Options.
I'm using Hybrid Framework for Umbraco v7 and Visual Studio 2012.
Regards,
Matt
Hi Matt
To use the ModelsBuilder in the way you have described requires that the ModelsBuilder Visual Studio Extension is installed. You can download the extension from:
https://visualstudiogallery.msdn.microsoft.com/3ac3afd4-09db-4c4f-89aa-6ce9e8e7c046
Double Click on the downloaded file to install the extension. After installing the extension you will see Zbu listed under Tools | Options and you can configure the Custom Tool.
Dallas
Thanks Dallas,
I watched this video and it explained a lot.
I've also added the appSettings that are missing from the framework.
Running the custom tool is currently just resulting in a box that says one or more errors ocurred. Is there anyway to see what these errors are?
There are some other threads here regarding problems with using the ModelsBuilder so I'm going to read those more closely.
Hi,
After installing -> click on "Run custom tool" then get below error.
ZbuModelsBuilder: ZbuModelsBuilder failed to generate code: FileNotFoundException: Could not load file or assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
can some one help on this.
Thanks in advance
Regards
Mehul Gajjar.
You can try updating the ZbuModelsBuilder nuGet packages.
is working on a reply...