SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

How to use PackageManagement.Cmdlets in powershell

Last post 12-19-2016 6:03 PM by hoangbv15. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 12-19-2016 6:03 PM

    How to use PackageManagement.Cmdlets in powershell



    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:







Page 1 of 1 (1 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this ( email address.