This repository was archived by the owner on Dec 8, 2021. It is now read-only.
Windows PowerShell Support and InvokeBuild #62
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
If you're resourceful enough, you'll notice that Polaris actually already supports Windows PowerShell. That's how we have a working AppVeyor build that runs Pester tests.
That said, I'm saying now that Polaris supports Windows PowerShell.
Polaris targets .NET Standard 2.0 and .NET Framework 4.5.1. If your version of PowerShell can import a dll from one of these libraries, you should be good to go.
If we need to target an even older version of the .NET Framework, please open an issue and I will address it. FYI HttpListener support Windows XP SP2 and up.
InvokeBuild
In addition to support for Windows PowerShell, we've onboarded to InvokeBuild. I find it really easy to use and it helps when deciding what frameworks to build on what machines.
Breaking change
This PR also includes a breaking change. PowerShell Core 6 beta 9 includes a breaking change to Get-Content that removes the
-Encoding byte
flag and replaces it with-AsByteStream
. Polaris uses Get-Content for static routes. Since PowerShell Core 6 is still in beta, I'm only going to support the latest version of PowerShell Core 6. That said, static routes will no longer work with PowerShell Core 6 beta 8 and lower. Please move to PowerShell Core 6Addressed:
#57
#11