Copied to clipboard

Flag this post as spam?

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


  • Ken Brown 14 posts 105 karma points
    Dec 04, 2013 @ 19:08
    Ken Brown
    0

    Problem adding 6.1.6 via NuGet

    Good afternoon,

    I'm encountering an issue when trying to add Umbraco via NuGet in VS2010 (and 2013) to a web project:

    Install failed. Rolling back...
    Install-Package : The project file could not be loaded. Could not find a part of the path 'C:\Sites\<project_name>\<site>\'.  C:\Sites\<project_name>\<site>\
    At line:1 char:16
    + install-package <<<<  umbracocms -version 6.1.6
        + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidProjectFileException
        + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

    My existing project had already been built (and saved to source control, thankfully), so there's no issue there.

    Am I missing something with permissions? Bad luck?

    Any help is greatly appreciated.

    Thanks,
    Ken

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Dec 05, 2013 @ 08:38
    Sebastiaan Janssen
    0

    Do you have spaces in your path? Could be that is not handled properly by the powershell command in the NuGet package. If yes (and if installing on a path that doesn't have spaces in it works) then could you please add an issue to http://issues.umbraco.org so we can have a look at it? Thanks.

    If that's not it, maybe the NuGet cache is corrupt, delete anything related to Umbraco from C:\Users\

  • Ken Brown 14 posts 105 karma points
    Dec 05, 2013 @ 15:16
    Ken Brown
    0

    Thanks for the response, Sebastiaan.

    Didn't have any spaces in the path. Deleted everything related to Umbraco in the path you mentioned. Created a new blank website in VS2013. Built it and tried to add Umbraco 7 to the project.

    Result:

    Install failed. Rolling back...
    The project file could not be loaded. The given path's format is not supported.  C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\http:\localhost\utest

    I run VS as an administrator for web-related purposes (if that matters).

    I'll add this as an issue to the link you provided.

    Thanks,
    Ken 

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Dec 05, 2013 @ 15:46
    Sebastiaan Janssen
    0

    Are you creating your project with the name http://localhost/utest?? Where does that http:\localhost come from? I've never seen that before.

  • Ken Brown 14 posts 105 karma points
    Dec 05, 2013 @ 15:58
    Ken Brown
    0

    I created a website project called "utest". "localhost" is the friendly name for 127.0.0.1.

     

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Dec 05, 2013 @ 16:15
    Sebastiaan Janssen
    0

    I know that, but how did it end up in your path? That directory indeed will not exist: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\http:\localhost\utest

  • Ken Brown 14 posts 105 karma points
    Dec 05, 2013 @ 16:22
    Ken Brown
    0

    I honestly have no idea how it wound up there. I was also extremely puzzled when I first encountered it.

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Dec 05, 2013 @ 17:17
    Sebastiaan Janssen
    101

    Aah, I think I might get it, did you use a Website project (instead of a Web Project)?

    We currently don't support website projects with NuGet yet: http://issues.umbraco.org/issue/U4-3777

  • Ken Brown 14 posts 105 karma points
    Dec 05, 2013 @ 19:58
    Ken Brown
    0

    That would be the problem. I just successfully added it to a web project.

    Consider this "closed".

Please Sign in or register to post replies

Write your reply to:

Draft