Skip to content

Commit 1997d48

Browse files
committed
generator resource reader bugfix
1 parent 241bb35 commit 1997d48

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

StyleCop.Analyzers.Status.Generator/ResourceReader.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using System;
2-
using System.Collections;
1+
using System.Collections;
32
using System.Collections.Generic;
43
using System.Collections.Immutable;
54
using System.IO;
@@ -60,7 +59,8 @@ internal static ImmutableArray<ResourceDescription> GetResourcesRecursive(string
6059
string relativePath = Path.ChangeExtension(Path.GetFullPath(path)
6160
.Substring(root.Length)
6261
.Replace(Path.DirectorySeparatorChar, '.')
63-
.Replace(Path.AltDirectorySeparatorChar, '.'), "resources");
62+
.Replace(Path.AltDirectorySeparatorChar, '.'), "resources")
63+
.TrimStart('.');
6464

6565
descriptions.Add(ReadResource(relativePath, path));
6666
}

0 commit comments

Comments
 (0)