Hi,
I have a website project which I would like to Octopack. When installing Octopack from package manager console, I get the following error:
PM> Install-Package OctoPack
Installing ‘OctoPack 2.0.20’.
Successfully installed ‘OctoPack 2.0.20’.
Adding ‘OctoPack 2.0.20’ to MaximWS.
Successfully added ‘OctoPack 2.0.20’ to MaximWS.
Exception calling “Remove” with “0” argument(s): "‘Remove’ not applicable for this ProjectItem."
At C:\Users\Administrator\Documents\Visual Studio 2010\Projects\MaximWS\packages\OctoPack.2.0.20\tools\Install.ps1:9 char:18
-
$_.Remove <<<< ()
- CategoryInfo : NotSpecified: ( [], MethodInvocationException
- FullyQualifiedErrorId : ComMethodTargetInvocation
You cannot call a method on a null-valued expression.
At C:\Users\Administrator\Documents\Visual Studio 2010\Projects\MaximWS\packages\OctoPack.2.0.20\tools\MSBuild.psm1:90 char:30
-
$buildProject.GetProperty <<<< ($PropertyName)
- CategoryInfo : InvalidOperation: (GetProperty:String) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
NuGet package restore is not enabled. Adding OctoPack from the package directory.
Split-Path : Cannot bind argument to parameter ‘Path’ because it is null.
At C:\Users\Administrator\Documents\Visual Studio 2010\Projects\MaximWS\packages\OctoPack.2.0.20\tools\Install.ps1:16 char:33
-
$from = $Folder = split-path <<<< $Folder -NoQualifier -Resolve:$Resolve
- CategoryInfo : InvalidData: ( [Split-Path], ParameterBindingValidationException
- FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.SplitPathCommand
Adding MSBuild targets import: \Users\Administrator\Documents\Visual Studio 2010\Projects\MaximWS\packages\OctoPack.2.0.20\targets\OctoPack.targets
You cannot call a method on a null-valued expression.
At C:\Users\Administrator\Documents\Visual Studio 2010\Projects\MaximWS\packages\OctoPack.2.0.20\tools\Install.ps1:48 char:42
-
$target = $buildProject.Xml.AddImport <<<< ( $importFile )
- CategoryInfo : InvalidOperation: (AddImport:String) [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
OctoPack installed successfully.
Please suggest.
Regards,
Deeksha