Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for hosting on Nano Server #42

Open
ebekker opened this issue Jan 8, 2017 · 2 comments
Open

Add support for hosting on Nano Server #42

ebekker opened this issue Jan 8, 2017 · 2 comments

Comments

@ebekker
Copy link
Collaborator

ebekker commented Jan 8, 2017

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"
}
}
}

@ebekker
Copy link
Collaborator Author

ebekker commented Jan 8, 2017

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.

@thedevopsmachine
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants