I accidently issued an invalid PowerShell command in the NuGet Package Manager console and locked the console.
The command was
PM> Get-Project -all | Where { $_.ProjectName -imatch "GPEC.Personne }
then the console displayed >> as prompt and I was unable to leave this mode. Closing and reopening the console did not help. (Had to restart VS).
Is there a way to gracefully cancel a wrong command in this case and return to the standard PM> prompt?
Thanks in advance. Philippe
If you want to close the Package Manager Console window, please use SHIFT + ESC to close current opened window in Visual Studio.
That appears to be buggy behavior. The >>
indicates that syntactically the current command isn't finished. That is, you have opened a double quoted string but haven't finished it. Press the "Clear Console" toolbar button to escape out of this mode.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With