Skip to content

Add support for hosting on Nano Server #42

Open

Description

@ebekker

As was suggested by @thedevopsmachine...

Try replacing your "frameworks" entry in your project.json file with the following. It will allow you to extend your OS support to NanoServer.

"frameworks": {
"netstandard1.6": {
"dependencies": {
"Microsoft.PowerShell.NanoServer.NetCore.Library": "1.0.0"
}
},
"net452": {
"dependencies": {
"Microsoft.PowerShell.5.ReferenceAssemblies": "1.0.0"
}
}
}

Activity

  1. ebekker commented on Jan 8, 2017

    @ebekker
    CollaboratorAuthor

    We'll need to enable and test this on a Nano server setup. Because Nano only supports the .NET Core and PowerShell Core edition, this will be limited to working only with providers that are compatible with .NET Core/.NET Standard, so we won't be able to support the current PS5 handler in that configuration.

  2. thedevopsmachine commented on Jan 9, 2017

    @thedevopsmachine

    The Microsoft.PowerShell.NanoServer.NetCore.Library exposes exactly the same classes as System.Management.Automation, the only difference is the package name. I briefly looked at the code for the v5 provider and I didn't see any code that would prevent the PS5 handler from working on NanoServer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions