Browse Source

#2565: Improve GetFileNameForResource: Assume that input is already a filename.

pull/2578/head
Siegfried Pammer 3 years ago
parent
commit
2646265069
  1. 2
      ICSharpCode.Decompiler/CSharp/ProjectDecompiler/WholeProjectDecompiler.cs

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

@ -363,7 +363,7 @@ namespace ICSharpCode.Decompiler.CSharp.ProjectDecompiler @@ -363,7 +363,7 @@ namespace ICSharpCode.Decompiler.CSharp.ProjectDecompiler
{
// Clean up the name first and ensure the length does not exceed the maximum length
// supported by the OS.
fullName = CleanUpDirectoryName(fullName);
fullName = SanitizeFileName(fullName);
// The purpose of the below algorithm is to "maximize" the directory name and "minimize" the file name.
// That is, a full name of the form "Namespace1.Namespace2{...}.NamespaceN.ResourceName" is split such that
// the directory part Namespace1\Namespace2\... reuses as many existing directories as

Loading…
Cancel
Save