diff --git a/src/EmbeddedResource.cs b/src/EmbeddedResource.cs index 7746d97b..018b5475 100644 --- a/src/EmbeddedResource.cs +++ b/src/EmbeddedResource.cs @@ -44,7 +44,7 @@ public static Stream GetStream(string relativePath) .Replace('\\', '.'); var manifestResourceName = Assembly.GetExecutingAssembly() - .GetManifestResourceNames().FirstOrDefault(x => x.EndsWith(resourceName)); + .GetManifestResourceNames().FirstOrDefault(x => x.EndsWith(resourceName, StringComparison.Ordinal)); if (string.IsNullOrEmpty(manifestResourceName)) throw new InvalidOperationException($"Did not find required resource ending in '{resourceName}' in assembly '{baseName}'.");