Skip to content

Commit

Permalink
Fix #2830: Can't decompile project with / in resource name on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
siegfriedpammer committed Dec 3, 2022
1 parent 598bc2c commit 4eea4bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ string GetFileNameForResource(string fullName)
// 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--)
Expand Down

0 comments on commit 4eea4bf

Please sign in to comment.