Hi,
I'm trying to use the PackageManagement cmdlets that come with SharpDevelop 5.1, but i'm running into a problem.
This is what i've tried
import-module ".\PackageManagement.Cmdlets.dll"
$solution = "C:\Git\TestProject\TestProject.sln"
$project = Get-Project TestProject $solution
This results in a TypeInitializationException
System.TypeInitializationException: The type initializer for 'ICSharpCode.PackageManagement.PackageManagementServices' t
hrew an exception. ---> ICSharpCode.Core.ServiceNotFoundException: Required service not found: ICSharpCode.Core.IPropertyService
I have also tried
[Reflection.Assembly]::LoadFrom(".\PackageManagement.Cmdlets.dll") | Out-Null
$test = New-Object ICSharpCode.PackageManagement.Cmdlets.GetProjectCmdlet
Which resulted in the same exception.
Looking at fusion logs, looks like the following libraries are loaded:
PackageManagement
NuGet.Core
ICSharpCode.SharpDevelop
ICSharpCode.Core