-
Notifications
You must be signed in to change notification settings - Fork 685
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
[BUG] pre-release crashes on start, can't load hostfxr.dll
#5877
Comments
hostfxr.dll
, crashes extensionhostfxr.dll
hostfxr.dll
hostfxr.dll
@josh-hemphill could you post a screenshot of your extensions folder (particularly interested in the name of the We've had issues before where the incorrect platform gets downloaded from the marketplace causing the runtime to fail to start the server. If you do see the wrong platform, uninstall the extension, close vscode, delete the folder in the extensions folder, and reinstall. |
The environment I'm running this stuff in is pretty restrictive, I don't think I'll be able to share any images. |
Ignore this if it is obvious to everyone, but just in case: |
I looked through my extensions.json in the extensions directory, and it looks like I'm also using RedHat's XML extension which is platform dependent, and lists Is there anything special about the |
Thanks - I actually didn't know that, so that's good to know.
Very strange... it definitely seems like there is a platform mismatch somewhere.
It's part of the runtime. I don't know too much about it other than that, other than we've seen similar errors when the marketplace downloads the extension for the wrong platform (e.g. microsoft/vscode-dotnettools#141) |
The Well... I guess I'll close and just reopen if the issue returns. (Which I'm sure it will the second I try to get someone else set up with the extension.😆😢) |
Yup that dll all looks correct. I'm glad to hear it's working now, but definitely confused on why it didn't work before. Do tag me and re-open the issue if it comes back though. |
I'm seeing this myself as well:
|
@josh-hemphill, by any chance did you run a |
Nope, didn't run anything like that, but I think I had been messing with some configs and got stuck in an extension update loop for a while for some reason. But it all just kinda resolved itself after a reboot. |
Closing this issue - it's quite stale and we've fixed a number of similar issues. If there are still problems on the latest versions, please open a new issue with updated logs. |
Steps to reproduce
Actual behavior
Before manually setting dotnet path:
after
Environment data
VS Code version: 1.79.2
C# Extension version: 2.0.248
Dotnet Information
.NET SDK:
Version: 7.0.304
Commit: 7e794e2806
Runtime Environment:
OS Name: Windows
OS Version: 10.0.17763
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\7.0.304\
Host:
Version: 7.0.7
Architecture: x64
Commit: 5b20af47d9
.NET SDKs installed:
3.1.426 [C:\Program Files\dotnet\sdk]
5.0.416 [C:\Program Files\dotnet\sdk]
7.0.304 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.18 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.18 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.18 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.7 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]
Environment Variables:
Not set
global.json file:
Not found
Visual Studio Code Extensions
The text was updated successfully, but these errors were encountered: