We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 241bb35 commit 1997d48Copy full SHA for 1997d48
1 file changed
StyleCop.Analyzers.Status.Generator/ResourceReader.cs
@@ -1,5 +1,4 @@
1
-using System;
2
-using System.Collections;
+using System.Collections;
3
using System.Collections.Generic;
4
using System.Collections.Immutable;
5
using System.IO;
@@ -60,7 +59,8 @@ internal static ImmutableArray<ResourceDescription> GetResourcesRecursive(string
60
59
string relativePath = Path.ChangeExtension(Path.GetFullPath(path)
61
.Substring(root.Length)
62
.Replace(Path.DirectorySeparatorChar, '.')
63
- .Replace(Path.AltDirectorySeparatorChar, '.'), "resources");
+ .Replace(Path.AltDirectorySeparatorChar, '.'), "resources")
+ .TrimStart('.');
64
65
descriptions.Add(ReadResource(relativePath, path));
66
}
0 commit comments