-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
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
Clicking on C# script does not launch Visual Studio anymore in 4.3 #95657
Comments
To open Visual Studio, Godot starts a process using the Also, keep in mind Godot only supports Visual Studio 2022 and 2019. What version of Visual Studio do you have installed? Did you update it recently? There may be more information about what's happening in the console. Try opening Godot in a terminal with the |
Also facing the same issue. just overall weird behavior as well within visual studio when I manually open it. |
The error 0x800700C1 basically means architecture mismatch. The OpenVisualStudio application is a 32-bit executable, but it's trying to load the hostfxr DLL from a 64-bit .NET SDK. Do you have a 32-bit .NET SDK? You can check with the We should probably build the OpenVisualStudio application for the same architecture of the Godot editor build that it's distributed with. @paulloz was right. |
If I'm not mistaken, I have 64-bit .Net Sdk. Here is the output of
|
Yes, you have a 64-bit .NET SDK and also 32-bit. But you also have the |
Thanks for the explanation! There is still one thing that I don't understand: Why don't I have the same issue with Godot 4.2.2? Other question: if I build Godot on my laptop, how can I get a 64 bits version of |
Because in 4.2.2
It's hardcoded to godot/modules/mono/editor/GodotTools/GodotTools.OpenVisualStudio/GodotTools.OpenVisualStudio.csproj Line 8 in 1bd740d
You can manually change it to |
Should we make sure to always match the architecture, then? |
Yes, I think that'd be the safest option. But since we build the official release from a Linux container we can't rely on the runtime identifier auto-detected from the .NET SDK used to build the assembly. We may have to change |
Tested versions
System information
Windows 11
Issue description
I have a C# script attached to a node.
When I click on this icon while using Godot 4.2.2, it opens this file in Visual Studio. That's the expected behavior.
When I click on this icon while using "Godot 4.3 with mono support", it does not open Visual Studio (it does not have any visible impact AFACS, in particular: I don't even see any error message). That's the actual behavior
Nb1: I have the
Èxternal Editor
for dotnet configured toVisual Studio
.Nb2: It seems an issue specific to C# (or perhaps Visual Studio) because when I use gdscript and configure an external editor (tested with VsCode), then clicking on the script icon leads to correctly opening VsCode
Steps to reproduce
Editor settings
the keyDotnet > Editor > External Editor
toVisual Studio
Minimal reproduction project (MRP)
MRP-CannotOpenVsInGodot4_3.zip
The text was updated successfully, but these errors were encountered: