microsoft / unitysetup.powershell

Powershell module for interfacing with Unity installs and projects.
MIT License
179 stars 48 forks source link

PowerShell Core 6 - Find-UnitySetupInstaller Issues #116

Closed Ziugy closed 5 years ago

Ziugy commented 6 years ago

Running the one example Find-UnitySetupInstaller -Version '2017.3.0f3' | Format-Table outputs:

WARNING: Unable to find installer for the WebGL component.
WARNING: Unable to find installer for the Metro component.
WARNING: Unable to find installer for the StandardAssets component.
WARNING: Unable to find installer for the Windows component.
WARNING: Unable to find installer for the UWP_IL2CPP component.
WARNING: Unable to find installer for the AppleTV component.
WARNING: Unable to find installer for the Vuforia component.
WARNING: Unable to find installer for the Windows_IL2CPP component.
WARNING: Unable to find installer for the Documentation component.
WARNING: Unable to find installer for the iOS component.
WARNING: Unable to find installer for the Mac component.
WARNING: Unable to find installer for the Android component.
WARNING: Unable to find installer for the Linux component.
WARNING: Unable to find installer for the Facebook component.

I'm able to run other commands like Get-UnitySetupInstance.

Installing the module in PowerShell on the same machine works just fine.

Ziugy commented 6 years ago

After implementing macOS support for this I think this might be related to handling some of the web results we get back. I'll investigate this next alongside my macOS support since they're closely coupled.

Ziugy commented 6 years ago

Verified that PR #123 for macOS support will also resolve this issue. Specifically -is [System.Array] checks are the fix.