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?
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\
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.
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
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
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\
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
Are you creating your project with the name http://localhost/utest?? Where does that http:\localhost come from? I've never seen that before.
I created a website project called "utest". "localhost" is the friendly name for 127.0.0.1.
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
I honestly have no idea how it wound up there. I was also extremely puzzled when I first encountered it.
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
That would be the problem. I just successfully added it to a web project.
Consider this "closed".
is working on a reply...