Update resource names

This commit is contained in:
Victor Hurdugaci 2015-04-08 14:55:34 -07:00
parent 043b0f204c
commit fab55afca5
2 changed files with 8 additions and 2 deletions

View File

@ -34,7 +34,10 @@ namespace Microsoft.Framework.WebEncoders
private static uint[] CreateDefinedCharacterBitmap()
{
// The stream should be exactly 8KB in size.
var stream = typeof(UnicodeHelpers).GetTypeInfo().Assembly.GetManifestResourceStream("compiler/resources/unicode-7.0.0-defined-characters.bin");
var assembly = typeof(UnicodeHelpers).GetTypeInfo().Assembly;
var resourceName = assembly.GetName().Name + ".compiler.resources.unicode-7.0.0-defined-characters.bin";
var stream = assembly.GetManifestResourceStream(resourceName);
if (stream.Length != 8 * 1024)
{
Environment.FailFast("Corrupt data detected.");

View File

@ -157,7 +157,10 @@ namespace Microsoft.Framework.WebEncoders
HashSet<string> seenCategories = new HashSet<string>();
bool[] retVal = new bool[0x10000];
string[] allLines = new StreamReader(typeof(UnicodeHelpersTests).GetTypeInfo().Assembly.GetManifestResourceStream("../../unicode/UnicodeData.txt")).ReadAllLines();
var assembly = typeof(UnicodeHelpersTests).GetTypeInfo().Assembly;
var resourceName = assembly.GetName().Name + ".UnicodeData.txt";
string[] allLines = new StreamReader(assembly.GetManifestResourceStream(resourceName)).ReadAllLines();
foreach (string line in allLines)
{