Browse Source

Fix `OpenCmdHere` malfunction when ILSpy is running from a different drive than the OS.

pull/3619/head
sonyps5201314 1 month ago
parent
commit
e807f1ade2
  1. 2
      ILSpy/TreeNodes/AssemblyTreeNode.cs

2
ILSpy/TreeNodes/AssemblyTreeNode.cs

@ -741,7 +741,7 @@ namespace ICSharpCode.ILSpy.TreeNodes @@ -741,7 +741,7 @@ namespace ICSharpCode.ILSpy.TreeNodes
var path = Path.GetDirectoryName(node.LoadedAssembly.FileName);
if (Directory.Exists(path))
{
GlobalUtils.ExecuteCommand("cmd.exe", $"/k \"cd {path}\"");
GlobalUtils.ExecuteCommand("cmd.exe", $"/k \"cd /d {path}\"");
}
}
}

Loading…
Cancel
Save