From 77dc975f9bb1c4ac5dd149da539212f94c54b752 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=87=E7=85=8C?= Date: Wed, 28 Oct 2020 00:53:46 +0800 Subject: [PATCH] fix GetFileNameForResource not in accordance with https://github.com/icsharpcode/ILSpy/pull/2157 --- .../CSharp/ProjectDecompiler/WholeProjectDecompiler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ICSharpCode.Decompiler/CSharp/ProjectDecompiler/WholeProjectDecompiler.cs b/ICSharpCode.Decompiler/CSharp/ProjectDecompiler/WholeProjectDecompiler.cs index 18deba3e8..6888f9579 100644 --- a/ICSharpCode.Decompiler/CSharp/ProjectDecompiler/WholeProjectDecompiler.cs +++ b/ICSharpCode.Decompiler/CSharp/ProjectDecompiler/WholeProjectDecompiler.cs @@ -357,7 +357,7 @@ namespace ICSharpCode.Decompiler.CSharp.ProjectDecompiler string fileName = CleanUpFileName(fullName); 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)) { string name = string.Join(".", splitName, i, splitName.Length - i);