-
Notifications
You must be signed in to change notification settings - Fork 396
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
Minimum PowerShell Host Version Error #2198
Comments
Could you provide example code that reproduces this issue? Thanks. |
The following code will produce the error.
|
@daxian-dbw Can you provide some insights here? Thanks! |
The module manifest of |
Does that change any behaviors of the host? |
I don't think so. That version was chosen probably just to reflect it was new work. However, changing the version itself may not solve all the problems -- this module depends on the host version being 1.0, but there could be other modules depending on a higher version of the host -- those modules were targeting PowerShell console (thus the PowerShell console host) and ideally should remove that key from the module manifest file unless it really depends on the PowerShell console host. |
When trying to run a script with the
Microsoft.Xrm.Data.Powershell
module I get the following error:The current PowerShell host is: '.NET Interactive Host' (version 0.0.1). The module 'C:\Users\...\Documents\PowerShell\Modules\Microsoft.Xrm.Data.Powershell\2.8.14\Microsoft.Xrm.Data.Powershell.psd1' requires a minimum PowerShell host version of '1.0' to run.
I'm not sure if this is an issue with how this module is checking the PowerShell version or something unexpected with the new .NET Interactive Host.
The text was updated successfully, but these errors were encountered: