solarwinds / OrionSDK

SDK for the SolarWinds Orion platform, including tools, documentation, and samples in PowerShell, C#, Go, Perl, and Java.
https://thwack.com/OrionSDK
Apache License 2.0
397 stars 139 forks source link

Enable PowerShell Core #271

Closed danjagnow closed 3 years ago

danjagnow commented 3 years ago

This PR includes several changes to enable the SwisPowerShell commandlet to work with PowerShell 7, previously known as PowerShell Core. The goal is to enable cross-platform usage of this PowerShell commandlet. See the supported platforms for PowerShell 7.

To enable this change, several assemblies were retargeted from net48 to netstandard2.0. This required changes to system dependencies that are reflected in the MSI installer. The most significant changes (courtesy of @tdanner) were related to the Windows Communication Foundation (WCF) protocol that SWIS uses. It has limited support in .NET Core.