Fix some resource issues

This commit is contained in:
Andrew Cooper
2022-07-06 07:52:59 +10:00
parent ffc0b99fa3
commit f35bbb0224
4 changed files with 5 additions and 3 deletions

View File

@@ -19,6 +19,7 @@ internal static class Resource
}
private static Stream GetStream([CallerMemberName] string? name = null) =>
Assembly.GetExecutingAssembly().GetManifestResourceStream($"Basketball.Resources.{name}.txt")
Assembly.GetExecutingAssembly()
.GetManifestResourceStream($"{typeof(Resource).Namespace}.{name}.txt")
?? throw new Exception($"Could not find embedded resource stream '{name}'.");
}