Error installing Octopack

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: (:slight_smile: [], 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: (:slight_smile: [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

Hi,

Can I please have an update on this?

Regards,
Deeksha

Hi,

Can you tell me what kind of project is “MaximWS”? Is it a C++ project, a C# project, a VB project? Is it an ASP.NET project or a console application? Which version of Visual Studio are you using?

Paul

Hi Paul,

MaximWS is a VB.NET Website project. I am using Visual Studio 2010 Professional. The project is using .NET 2 version.

Please let me know if you need any further information.

Regards,

Deeksha

Hi,

Can I please have an update on this? I need to octopack my project as soon as possible.

Regards,
Deeksha

Hi Deeksha,

I don’t think OctoPack is going to work with VS2010/.NET 2.0 projects; we’ll have to make some changes to support this. For now you might need to look at using NuGet.exe pack directly.

Paul