-
Notifications
You must be signed in to change notification settings - Fork 676
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
Project load failure - Failed to find all versions of .NET Core MSBuild. Call to hostfxr_resolve_sdk2 #6335
Comments
Also, I downgraded to 2.0.436 and the issues have gone away, so it's something new. I also tried the pre-release, but the issue was still there, so staying on 2.0.436 for now. |
From the logs:
|
@dibarbet Sure here you go:
|
Thanks - the dotnet info looks fine. |
@dibarbet I'm not seeing 2.0.448 in the releases for vscode-csharp? |
Apologies - we had to redo the version numbers so 2.0.448 = 2.1.2. So most likely caused by dotnet/roslyn#69769. Will followup on their side to see what we might need to do. |
Another report here - #6346 |
Update - We've been able to reproduce this and are looking into the best way of fixing this. As a temporary workaround I think if you install the .NET 7 SDK alongside the .NET 6 SDK it should allow the project to load successfully. |
I just rollback to v2.0.436 for workaround. |
Currently tracking microsoft/MSBuildLocator#243 as a potential fix. Will need to update the server to consume this new version once it merges. |
We just released version If you're still having issues after upgrading, please open a new issue. Thanks! |
Thank you, WFM |
Syntax highlighting, cmd+click, and on-hover info is working again for me. Thanks! |
v2.3.27 works great for me in Debian Dev Containers, thanks! |
Type: Bug
Issue Description
(Running on macOS Silicon)
Just recently have suddenly been having problems with definition not found when trying to do code navigation, e.g. right-click on a class name and "Go to Definition." Never had this problem before, but no matter how many restarts, reinstalls of the C# extension, etc., can't seem to get it working again.
Steps to Reproduce
I open up my usual C# project, build it (no errors), and then try to do things like "Go to Definition" on a class name or the like, and I get the "No definition found for..." error.
Logs
logs.zip
Environment information
VSCode version: 1.82.0
C# Extension: 2.1.2
Using OmniSharp: false
Dotnet Information
Error running dotnet --info: Error: Command failed: /Users/tom/Library/Application Support/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/7.0.10/dotnet --info /bin/sh: /Users/tom/Library/Application: No such file or directory/bin/sh: /Users/tom/Library/Application: No such file or directory
Visual Studio Code Extensions
Extension version: 2.1.2
VS Code version: Code 1.82.0 (8b617bd08fd9e3fc94d14adb8d358b56e3f72314, 2023-09-06T22:08:29.670Z)
OS version: Darwin arm64 22.6.0
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: