On these masterpages i can add items that reference my document types fine.
The project builds fine.
When i deploy to my umbraco site I get the document types imported and updated but none of my templates are getting added.
I am not getting any errors and i cant see anywhere that uSitebuilder logs any errors?
Also - how do I set my default templates on my document types? - as I cant rerefence my web project from a class library, I am getting the feeling ive maybe set my projects up wrong and its all related.
I am having a similar problem. I get the templates to appear and can create the umbraco Project and MemberType but I get "Exception has been thrown by the target of an invocation" when I try to create DocumentType or Web user Control from the templates. Tried in VS 2012 pro and 2010 web express.
I have a little more progress bit still having issues.
I removed the seperate web project and copied the masterpage templates to the class library (as there aint no way to create a masterpage within a class library).
Now when i build and deploy the templates are created.
However i am having trouble with Visual Studio constantly complaining about compilation issues with the Vega namespace in the master page partial class files.
I was hoping uSitebulder would speed things up but its slowed me down to a crawl at the moment. :(
What is the correct project structure if you don't use the Wizards/project template?
And Magnus - I think the error you are getting is because I dont think the project template is compatible with VS2012 (i had the same error so have not been using the template).
Maybe someone at Vega could rebuild the project template for VS2012? I am guessing its the dialogues that popup to ask you what to create that have a problem.
At the end of the day you dont have to use the project template and wizards but the issue i have listed above are why i gave it a go.
There's no correct project structure, but you need to make sure the library that the master pages are defined in is being referenced by your Umbraco website. When you had the master pages in a web app did you copy the web app's dll into your umbraco website?
1. Copy Vega.USiteBuilder.dll to the website's bin folder.
2. Copy all *.master files from Masterpages folder in your project to website's master pages folder. In case of this sample application those files are: Main.master, News.master, NewsItem.master. Of course, you should not copy .cs files - copy only .master files.
3. Copy website project's output dlls (in this case it's only one dll - MyCompany.SampleWebsite.Web.dll) to website's bin folder.
4. That's it! Open the Umbraco website backoffice and let's see what's there.
I normally have the master pages defined in a separate web app (referenced by the Umbraco site) and have a post build event copying the *.master pages into the main Umbraco site, but I know other people set things up in different ways.
Yes that exactly how i did things from the off but the templates just didnt appear until i added them to the class library.
Does the type of web project matter? i.e Does it need to be a Web Site or a Web Application project? Cant remember which i tried. I'll give them both another go!
uSitebuilder Templates not importing
I have created a .Net 4.0 C# Class Library that references uSiteBuidler with all my docTypes and these import fine into Umbraco 4.9
I have then added an ASP.Net 4.0 web project to my solution and referenced my class library.
I have created some strongly typed master pages that inherit from:
On these masterpages i can add items that reference my document types fine.
The project builds fine.
When i deploy to my umbraco site I get the document types imported and updated but none of my templates are getting added.
I am not getting any errors and i cant see anywhere that uSitebuilder logs any errors?
Also - how do I set my default templates on my document types? - as I cant rerefence my web project from a class library, I am getting the feeling ive maybe set my projects up wrong and its all related.
Any ideas where to start looking?
Ive tried using the Wizards but as im using VS2012 it doesnt work! I managed to get the templates to appear but i get RTE when i try adding items.
I am having a similar problem. I get the templates to appear and can create the umbraco Project and MemberType but I get "Exception has been thrown by the target of an invocation" when I try to create DocumentType or Web user Control from the templates. Tried in VS 2012 pro and 2010 web express.
I have a little more progress bit still having issues.
I removed the seperate web project and copied the masterpage templates to the class library (as there aint no way to create a masterpage within a class library).
Now when i build and deploy the templates are created.
However i am having trouble with Visual Studio constantly complaining about compilation issues with the Vega namespace in the master page partial class files.
I was hoping uSitebulder would speed things up but its slowed me down to a crawl at the moment. :(
What is the correct project structure if you don't use the Wizards/project template?
And Magnus - I think the error you are getting is because I dont think the project template is compatible with VS2012 (i had the same error so have not been using the template).
Maybe someone at Vega could rebuild the project template for VS2012? I am guessing its the dialogues that popup to ask you what to create that have a problem.
At the end of the day you dont have to use the project template and wizards but the issue i have listed above are why i gave it a go.
There's no correct project structure, but you need to make sure the library that the master pages are defined in is being referenced by your Umbraco website. When you had the master pages in a web app did you copy the web app's dll into your umbraco website?
Have a look at http://usitebuilder.vegaitsourcing.rs/tutorials?id=22391
Template deployments is very simple:
1. Copy Vega.USiteBuilder.dll to the website's bin folder.
2. Copy all *.master files from Masterpages folder in your project to website's master pages folder. In case of this sample application those files are: Main.master, News.master, NewsItem.master. Of course, you should not copy .cs files - copy only .master files.
3. Copy website project's output dlls (in this case it's only one dll - MyCompany.SampleWebsite.Web.dll) to website's bin folder.
4. That's it! Open the Umbraco website backoffice and let's see what's there.
I normally have the master pages defined in a separate web app (referenced by the Umbraco site) and have a post build event copying the *.master pages into the main Umbraco site, but I know other people set things up in different ways.
Stephen
Yes that exactly how i did things from the off but the templates just didnt appear until i added them to the class library.
Does the type of web project matter? i.e Does it need to be a Web Site or a Web Application project? Cant remember which i tried. I'll give them both another go!
Ok looks like the issue was i added a "website" not a web application!
Everything plays happy again now... well apart from the next lot of bugs that have reared their ugly heads now! ;)
is working on a reply...