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
Could not load type 'System.Runtime.InteropServices.OSPlatform #82
Comments
I am facing with same issue, I do have necessary supported environments on my machine |
Please update to .NET 4.7.1 or later. Sadly this can't be fixed as it's an issue in .NET Framework. We tried to workaround this by copying netstandard.dll into the Power BI PowerShell module which fixed some environments but for others they run into this issue. Next release of this module, documentation will state 4.7.1 as the minimal version supported. |
* Updates to doc for New-PowerBIReport * UserName and Credential overload for Connect-PowerBIServiceAccount (windows only) * Adding Out-String vswhere output, issue #76 * Fixing issue where cmdlets couldn't load when executing on file shares, issue #87 * Adding GCC High and GCC Military to environment list * Updating recommended .NET version to 4.7.1 for issues #82, #60 * Fix for New-PowerBIReport to import reports when user only has read-access * Final change to enable Connect-PowerBIServiceAccount -Credential (without -ServicePrincipal). Addresses issues #59, #49, #51 and possibly #85
* New-PowerBIReport cmdlet (Steffen Kampmann contributed) * UserName and Credential overload for Connect-PowerBIServiceAccount (windows only), #59, #49, #51 and possibly #85 * Adding Out-String vswhere output, issue #76 * Fixing issue where cmdlets couldn't load when executing on file shares, issue #87 * Adding GCC High and GCC Military to environment list * Updating recommended .NET version to 4.7.1 for issues #82, #60 * Examples folder created
README was updated with newer .NET version |
Running PowerShell 5.1 on Windows 7 running .Net received following error:
Connect-PowerBIServiceAccount : Could not load type 'System.Runtime.InteropServices.OSPlatform' from assembly 'netstandard, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=cc7b13ffcd2ddd51'.
At line:1 char:1
The text was updated successfully, but these errors were encountered: