mirror of
https://github.com/icsharpcode/ILSpy.git
synced 2026-10-12 02:15:58 +00:00
Fix #2830: Can't decompile project with / in resource name on Windows
This commit is contained in:
@@ -426,7 +426,7 @@ namespace ICSharpCode.Decompiler.CSharp.ProjectDecompiler
|
||||
// the directory part Namespace1\Namespace2\... reuses as many existing directories as
|
||||
// possible, and only the remaining name parts are used as prefix for the filename.
|
||||
// This is not affected by the UseNestedDirectoriesForNamespaces setting.
|
||||
string[] splitName = fullName.Split(Path.DirectorySeparatorChar);
|
||||
string[] splitName = fullName.Split('\\', '/');
|
||||
string fileName = string.Join(".", splitName);
|
||||
string separator = Path.DirectorySeparatorChar.ToString();
|
||||
for (int i = splitName.Length - 1; i > 0; i--)
|
||||
|
||||
Reference in New Issue
Block a user