Browse Source

fix GetFileNameForResource not in accordance with https://github.com/icsharpcode/ILSpy/pull/2157

pull/2201/head
文煌 5 years ago
parent
commit
77dc975f9b
  1. 2
      ICSharpCode.Decompiler/CSharp/ProjectDecompiler/WholeProjectDecompiler.cs

2
ICSharpCode.Decompiler/CSharp/ProjectDecompiler/WholeProjectDecompiler.cs

@ -357,7 +357,7 @@ namespace ICSharpCode.Decompiler.CSharp.ProjectDecompiler
string fileName = CleanUpFileName(fullName); string fileName = CleanUpFileName(fullName);
for (int i = splitName.Length - 1; i > 0; i--) for (int i = splitName.Length - 1; i > 0; i--)
{ {
string ns = string.Join(".", splitName, 0, i); string ns = string.Join("\\", splitName, 0, i);
if (directories.Contains(ns)) if (directories.Contains(ns))
{ {
string name = string.Join(".", splitName, i, splitName.Length - i); string name = string.Join(".", splitName, i, splitName.Length - i);

Loading…
Cancel
Save