-
-
Notifications
You must be signed in to change notification settings - Fork 140
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
Issue: Failed to load the hostfxr.dll, when PowerShell installed via Microsoft Store [v2.0.4] #229
Comments
Sorry to bring back an issue you've fixed previously :-( |
Hi, have you looked at #106, where we found out powershell installation was corrupt?
|
Sorry, my bad on not checking that one out. I thought the closed issues were resolved, but I didn't clock that there wasn't a branch referenced in it.
I'm local admin, not elevating to a different user.
Okay, this was sensible. I'm on a different version of PowerShell than that (
Is this a PowerShell issue, or an issue with the way that gsudo is installed (via |
This is unrelated to gsudo. It seems your PowerShell install is corrupt, same as #106 You can try this:
Or alternatively
|
Thanks for the help with this. No idea why this is the case, but as it is the case, this is not a gsudo problem, like you have said. Thanks for your help. Debugging Windows weirdness is always a fun afternoon... |
Mmm, I don't understand. |
I have also been getting this error for the last 2 days. It occurs only in my Windows Store PowerShell, not in my manually installed one. Seems to occur with 7.3.1 and 7.3.2. It occurs after a fresh install from the Store and even after rebooting. Perhaps there is some Windows Store release practice not being respected by gsudo? As <7.3 MS Store worked with gsudo previously. Note: Locally installed PowerShell works with gsudo in Windows Terminal and cmd. MS Store PowerShell does not work with gsudo in Windows Terminal or cmd. I am using chocolatey for gsudo. Most likely an issue with the MS Store PowerShell release of hostfxr.dll or a permission change from execution to read only. Will try to investigate. Worked on my laptop with 7.3.2, updated Windows 10, now it is the same error. |
I apologize for not having time for gsudo lately. I need your help to find out is this is a problem on gsudo or on powershell.
|
Similar to Issue 65, gsudo throws an error, failing to load
hostfxr.dll
when using PowerShell as installed from the Microsoft Store.Debug Output
Attempting to install .NET prerequisities via the given error link don't resolve the situation.
This occurs using both
sudo
andgsudo
Running with
--attached
also yields the same errorService Output
Context:
The text was updated successfully, but these errors were encountered: