Skip to content

Fix install on Windows PowerShell 5.1 when PSReadLine shadows OSArchitecture - #37

Merged
kzu merged 2 commits into
mainfrom
dev/mscorlib
Oct 6, 2026
Merged

kzu merged 2 commits into
mainfrom
dev/mscorlib

Conversation

@kzu

@kzu kzu commented Oct 6, 2026

Copy link
Copy Markdown
Member

Windows PowerShell 5.1 loads PSReadLine 2.0, which defines its own System.Runtime.InteropServices.RuntimeInformation with no OSArchitecture. irm install.ps1 | iex then sees a null architecture and throws unsupported architecture '' on 64-bit machines.

Qualify the type with mscorlib in install.ps1 and uninstall.ps1. PowerShell 7 still resolves that qualifier through its type forwarder.

…tecture.

PSReadLine 2.0 defines its own RuntimeInformation with no OSArchitecture, so the unqualified lookup returns null and the installer throws. Qualify the type with mscorlib in both scripts.
@kzu kzu added the bug Something isn't working label Oct 6, 2026
@kzu

kzu commented Oct 6, 2026 •

Copy link
Copy Markdown
Member Author

233 passed 233 passed

🧪 Details on Ubuntu 24.04.5 LTS

from retest v1.1.0 on .NET 10.0.12 with 💜 by @devlooped

The rolling ci workflow no longer packs musl. The test still required linux-musl-x64, which failed the PR build.
@kzu
kzu enabled auto-merge (rebase) October 6, 2026 22:24
@kzu
kzu merged commit 8a61f5f into main Oct 6, 2026
@kzu
kzu deleted the dev/mscorlib branch October 6, 2026 22:25
@devlooped devlooped locked and limited conversation to collaborators Nov 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant