Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • René Andersen 238 posts 684 karma points
    Feb 17, 2015 @ 09:42
    René Andersen
    0

    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é

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 17, 2015 @ 09:51
    Jan Skovgaard
    100

    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

  • René Andersen 238 posts 684 karma points
    Feb 17, 2015 @ 10:22
    René Andersen
    0

    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é

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 17, 2015 @ 10:38
    Jan Skovgaard
    1

    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

  • René Andersen 238 posts 684 karma points
    Feb 17, 2015 @ 11:05
    René Andersen
    0

    Hi Jan

    Thanks for your answer. I will go with Nuget. :-)

    // René

  • René Andersen 238 posts 684 karma points
    Feb 17, 2015 @ 13:43
    René Andersen
    0

    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é

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 17, 2015 @ 14:56
    Jan Skovgaard
    0

    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

  • René Andersen 238 posts 684 karma points
    Feb 17, 2015 @ 16:05
    René Andersen
    0

    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é

  • René Andersen 238 posts 684 karma points
    Feb 17, 2015 @ 16:20
    René Andersen
    0

    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é

  • René Andersen 238 posts 684 karma points
    Feb 18, 2015 @ 12:28
    René Andersen
    1

    Hi everybody

    I have now re-installed VS 2013 and the problem is solved. I now have the "add controller" option.

    // René

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 18, 2015 @ 13:20
    Jan Skovgaard
    1

    Hi René

    Awesome - Thanks for sharing :)

    /Jan

  • René Andersen 238 posts 684 karma points
    Feb 18, 2015 @ 16:30
    René Andersen
    0

    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é

  • René Andersen 238 posts 684 karma points
    Feb 19, 2015 @ 22:13
    René Andersen
    0

    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é

Please Sign in or register to post replies

Write your reply to:

Draft