I find it very easy just to download Umbraco as a zip file, unzip it and start working in Visual Studio. I know that Umbraco also can be installed with Nuget and I am wondering what is the benefit in using Nuget instead of just using the zip file?
One of the biggest benefits is that it's becoming easier to upgrade your Umbraco installation because that can be done using nuget as well by just running an upgrade command from the nuget console. That's a lot easier than having to do it manually where you need to download the new version of Umbraco and then override the necessary folders manually etc. (Not that it's a task that takes long necessarily though).
And I guess it's also easier to upgrade Umbraco dependencies and 3rd party stuff used in your Umbraco solution as well.
My understanding is that Nuget will install what is required in order for Umbraco to run. So all components that Umbraco is relying on will be installed as well.
There can be some issues when installing using nuget - For instance it's recommended to disable re-sharper while doing the install. So it's not necessarily hassle-free to do it the nuget way. There has been some quirks along the way - I've seen quite a few posts about it. But it's no more different than that issues can occur for some reason when doing a vanilla Umbraco installation if some dependencies are not in place etc. etc.
I have one more question. I am installing ver. 7.2.1 and I have tried to install it several times with VS 2013 and VS 2012 but I keep missing the "Controllers" folder.
If I create the "Controllers" folder myself then I am not able to add a controller in that folder.
If it's not created during installation I think you should just add a folder named "controller". In a clean installation done without nuget you don't have a "controllers" folder either :)
I have tried to add a folder called "controller" but I thought that it was a special folder, because I am following the Umbraco TV video about Surface controller and in that video he just right click on the folder and choose "Add controller" and I don't have that option. So maybe it is done differently in VS 2013.
I can add a controller when i start up an empty project, but when I install Umbraco Cms via Nuget then the "add controller" option is gone. I install Umbraco the same way as in this documentation:
Nuget vs zip
Hi,
I find it very easy just to download Umbraco as a zip file, unzip it and start working in Visual Studio. I know that Umbraco also can be installed with Nuget and I am wondering what is the benefit in using Nuget instead of just using the zip file?
// René
Hi René
One of the biggest benefits is that it's becoming easier to upgrade your Umbraco installation because that can be done using nuget as well by just running an upgrade command from the nuget console. That's a lot easier than having to do it manually where you need to download the new version of Umbraco and then override the necessary folders manually etc. (Not that it's a task that takes long necessarily though).
And I guess it's also easier to upgrade Umbraco dependencies and 3rd party stuff used in your Umbraco solution as well.
In case you have not seen it there is some documentation on how to install using Nuget here https://our.umbraco.org/documentation/Installation/install-umbraco-with-nuget
Hope this answers your question :)
/Jan
Hi Jan
I did make a installation following that guide but it took some time for Visual Studio to install all the files and folders.
I also had that feeling that the Nuget solution installed a lot of extra stuff which is not needed....But I am proberly wrong?
// René
Hi René
My understanding is that Nuget will install what is required in order for Umbraco to run. So all components that Umbraco is relying on will be installed as well.
There can be some issues when installing using nuget - For instance it's recommended to disable re-sharper while doing the install. So it's not necessarily hassle-free to do it the nuget way. There has been some quirks along the way - I've seen quite a few posts about it. But it's no more different than that issues can occur for some reason when doing a vanilla Umbraco installation if some dependencies are not in place etc. etc.
/Jan
Hi Jan
Thanks for your answer. I will go with Nuget. :-)
// René
Hi Jan
I have one more question. I am installing ver. 7.2.1 and I have tried to install it several times with VS 2013 and VS 2012 but I keep missing the "Controllers" folder.
If I create the "Controllers" folder myself then I am not able to add a controller in that folder.
I found something on this subject here:
https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/53132-Using-Surface-Controllers-with-Umbraco-7-
I find it a little hard to understand and I am not sure if this is the right solution.
// René
Hi René
If it's not created during installation I think you should just add a folder named "controller". In a clean installation done without nuget you don't have a "controllers" folder either :)
/Jan
Hi Jan
I have tried to add a folder called "controller" but I thought that it was a special folder, because I am following the Umbraco TV video about Surface controller and in that video he just right click on the folder and choose "Add controller" and I don't have that option. So maybe it is done differently in VS 2013.
// René
It looks like that it is a VS 2013 problem. I will dive into this and if I find a working solution I will post it here.
http://stackoverflow.com/questions/19849812/visual-studio-2013-add-controller-missing
http://stackoverflow.com/questions/17623516/in-visual-studio-2013-asp-net-mvc-5-how-do-i-add-a-new-controller
// René
Hi everybody
I have now re-installed VS 2013 and the problem is solved. I now have the "add controller" option.
// René
Hi René
Awesome - Thanks for sharing :)
/Jan
Arrrgh I thougt that it was solved...
I can add a controller when i start up an empty project, but when I install Umbraco Cms via Nuget then the "add controller" option is gone. I install Umbraco the same way as in this documentation:
https://our.umbraco.org/documentation/installation/install-umbraco-with-nuget
I have found a lot of posts regarding this issue see here:
http://stackoverflow.com/questions/10540198/context-menu-to-add-controller-view-missing
The solution could be something about changing
<ProjectTypeGuids>
But I have tried everything the past two days and nothing works.Has anybody experienced this problem?
// René
Hi everybody
The solution to this problem can be found here:
https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/61519-Surface-controller-add-controller-VS-2013
// René
is working on a reply...