Hi Paul,
I have a 3 different projects in a solution that I would like to use OctoPack with (web project, service project, and a database migrations library). However, when I try to install the OctoPack nuget package to any project I get the following errors:
PM> Install-Package OctoPack Attempting to resolve dependency 'NuGet.CommandLine (≥ 1.6.0)'. Successfully installed 'NuGet.CommandLine 1.6.0'. Successfully installed 'OctoPack 1.0.94'. Successfully added 'OctoPack 1.0.94' to Database. Delete temporary file Unable to find type [Microsoft.Build.Evaluation.ProjectCollection]: make sure that the assembly containing this type is loaded. At C:\EntDev\TT Website\trunk\TT Website\packages\OctoPack.1.0.94\tools\MSBuild.psm1:26 char:61 + @([Microsoft.Build.Evaluation.ProjectCollection] <<<< ::GlobalProjectCollection.GetLoadedProjects($path))[0] + CategoryInfo : InvalidOperation: (Microsoft.Build...ojectCollection:String) [], RuntimeException + FullyQualifiedErrorId : TypeNotFound You cannot call a method on a null-valued expression. At C:\EntDev\TT Website\trunk\TT Website\packages\OctoPack.1.0.94\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. Installing OctoPack Targets file import into project Database Unable to find type [Microsoft.Build.Evaluation.ProjectCollection]: make sure that the assembly containing this type is loaded. At C:\EntDev\TT Website\trunk\TT Website\packages\OctoPack.1.0.94\tools\MSBuild.psm1:26 char:61 + @([Microsoft.Build.Evaluation.ProjectCollection] <<<< ::GlobalProjectCollection.GetLoadedProjects($path))[0] + CategoryInfo : InvalidOperation: (Microsoft.Build...ojectCollection:String) [], RuntimeException + FullyQualifiedErrorId : TypeNotFound The current project is: C:\EntDev\TT Website\trunk\TT Website\Database\Database.csproj Project parent directory: C:\EntDev\TT Website\trunk\TT Website\Database Import will be added for: ..\packages\OctoPack.1.0.94\targets\OctoPack.targets You cannot call a method on a null-valued expression. At C:\EntDev\TT Website\trunk\TT Website\packages\OctoPack.1.0.94\tools\install.ps1:54 char:42 + $target = $buildProject.Xml.AddImport <<<< ( $importFile ) + CategoryInfo : InvalidOperation: (AddImport:String) [], RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull Import added!
This is my first time trying OctoPack so I’m not sure if I’m doing wrong or not. Is there something I’m missing?
Thanks,
Steven