mirror of
				https://github.com/godotengine/godot.git
				synced 2025-11-04 07:31:16 +00:00 
			
		
		
		
	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.
This commit is contained in:
		
							parent
							
								
									0a4aedb360
								
							
						
					
					
						commit
						ec189b1574
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -5,7 +5,6 @@
 | 
				
			||||||
    <TargetFramework>net6.0-windows</TargetFramework>
 | 
					    <TargetFramework>net6.0-windows</TargetFramework>
 | 
				
			||||||
    <LangVersion>10</LangVersion>
 | 
					    <LangVersion>10</LangVersion>
 | 
				
			||||||
    <Nullable>enable</Nullable>
 | 
					    <Nullable>enable</Nullable>
 | 
				
			||||||
    <RuntimeIdentifier>win-x86</RuntimeIdentifier>
 | 
					 | 
				
			||||||
    <SelfContained>False</SelfContained>
 | 
					    <SelfContained>False</SelfContained>
 | 
				
			||||||
    <RollForward>LatestMajor</RollForward>
 | 
					    <RollForward>LatestMajor</RollForward>
 | 
				
			||||||
  </PropertyGroup>
 | 
					  </PropertyGroup>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -259,11 +259,12 @@ namespace GodotTools
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    var args = new List<string>
 | 
					                    var args = new List<string>
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
 | 
					                        Path.Combine(GodotSharpDirs.DataEditorToolsDir, "GodotTools.OpenVisualStudio.dll"),
 | 
				
			||||||
                        GodotSharpDirs.ProjectSlnPath,
 | 
					                        GodotSharpDirs.ProjectSlnPath,
 | 
				
			||||||
                        line >= 0 ? $"{scriptPath};{line + 1};{col + 1}" : scriptPath
 | 
					                        line >= 0 ? $"{scriptPath};{line + 1};{col + 1}" : scriptPath
 | 
				
			||||||
                    };
 | 
					                    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    string command = Path.Combine(GodotSharpDirs.DataEditorToolsDir, "GodotTools.OpenVisualStudio.exe");
 | 
					                    string command = DotNetFinder.FindDotNetExe() ?? "dotnet";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    try
 | 
					                    try
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue