Prerequisites
Steps to reproduce
In a Windows 11 VM hosted in Parallels on a MacBook, with Parallels' default mapped apps and folders, the "dead code" assertion here is actually being hit, and prevents pwsh from starting up:
|
Diagnostics.Assert(false, "Really it is a dead code since GetDosDevice() is called only if PSDrive.DriveType == DriveType.Network"); |
Expected behavior
`pwsh` to start-up as normal
Actual behavior
The assertion is hit and the process exits (since it's a debug build)
Error details
No response
Environment data
Visuals
No response
Prerequisites
Steps to reproduce
In a Windows 11 VM hosted in Parallels on a MacBook, with Parallels' default mapped apps and folders, the "dead code" assertion here is actually being hit, and prevents
pwshfrom starting up:PowerShell/src/System.Management.Automation/engine/Interop/Windows/QueryDosDevice.cs
Line 91 in 91447e6
Expected behavior
`pwsh` to start-up as normalActual behavior
The assertion is hit and the process exits (since it's a debug build)Error details
No response
Environment data
built from masterVisuals
No response