-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Importing the OpenConsole.psm1
module should display an error message when used on Windows PowerShell 5
#17505
Comments
Which version of PowerShell are you using? "Windows PowerShell" ( |
@zadjii-msft, I am using Windows PowerShell version 5:
|
Well yep that explains it. You need to use PowerShell 7+. I'll convert this issue to "the powershell module should display an error if you try to import it in Powershell 5" |
OpenConsole.psm1
module should display an error message when used on Windows PowerShell 5
I've installed PowerShell 7+. So I reattempted these commands:
When I use
. I've included to my environment variables
|
You know, I actually don't think this module requires PowerShell 7! I just tried it on 5.1 and it works fine... /cc @michaeljsXu |
Windows Terminal version
1.20.11381.0
Windows build number
10.0.22631.0
Other Software
No response
Steps to reproduce
Under Developer Guidance, I made sure that I had the prerequisites:
I updated the repository with
git submodule update --init --recursive
In Powershell,
Import-Module .\tools\OpenConsole.psm1
works since I updated the Execution policy for my LocalMachine to run scripts. However,Set-MsBuildDevEnvironment
andInvoke-OpenConsoleBuild
don't work and return aCommandNotFoundException
.Expected Behavior
The following commands from Building the Code should build the application
Actual Behavior
Instead both return:
The text was updated successfully, but these errors were encountered: