From ec189b1574d24fda24f13210be0fb79a309b22da Mon Sep 17 00:00:00 2001 From: Raul Santos Date: Thu, 19 Sep 2024 19:21:48 +0200 Subject: [PATCH] C#: Use dotnet CLI to launch OpenVisualStudio.dll Use the DLL instead of the EXE, so we can rely on the dotnet CLI handling the architecture. --- .../GodotTools.OpenVisualStudio.csproj | 1 - modules/mono/editor/GodotTools/GodotTools/GodotSharpEditor.cs | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/mono/editor/GodotTools/GodotTools.OpenVisualStudio/GodotTools.OpenVisualStudio.csproj b/modules/mono/editor/GodotTools/GodotTools.OpenVisualStudio/GodotTools.OpenVisualStudio.csproj index f23f2b9a8cf..208e6d8f411 100644 --- a/modules/mono/editor/GodotTools/GodotTools.OpenVisualStudio/GodotTools.OpenVisualStudio.csproj +++ b/modules/mono/editor/GodotTools/GodotTools.OpenVisualStudio/GodotTools.OpenVisualStudio.csproj @@ -5,7 +5,6 @@ net6.0-windows 10 enable - win-x86 False LatestMajor diff --git a/modules/mono/editor/GodotTools/GodotTools/GodotSharpEditor.cs b/modules/mono/editor/GodotTools/GodotTools/GodotSharpEditor.cs index d3899c809a2..e84b4e92c72 100644 --- a/modules/mono/editor/GodotTools/GodotTools/GodotSharpEditor.cs +++ b/modules/mono/editor/GodotTools/GodotTools/GodotSharpEditor.cs @@ -259,11 +259,12 @@ namespace GodotTools var args = new List { + Path.Combine(GodotSharpDirs.DataEditorToolsDir, "GodotTools.OpenVisualStudio.dll"), GodotSharpDirs.ProjectSlnPath, line >= 0 ? $"{scriptPath};{line + 1};{col + 1}" : scriptPath }; - string command = Path.Combine(GodotSharpDirs.DataEditorToolsDir, "GodotTools.OpenVisualStudio.exe"); + string command = DotNetFinder.FindDotNetExe() ?? "dotnet"; try {