microsoft / referencesource

Source from the Microsoft .NET Reference Source that represent a subset of the .NET Framework
https://referencesource.microsoft.com/
MIT License
3.16k stars 1.27k forks source link

ResourceReader Cannot Read Resource File #57

Closed zeus82 closed 6 years ago

zeus82 commented 6 years ago

We are in the process of migrating an application from the .NET Framework to .NET Core 2, but it looks like the ResourceReader cannot process a valid resx file.

When I create the ResourceReader I get

System.ArgumentException: Stream is not a valid resource file.
   at System.Resources.ResourceReader._ReadResources()
   at System.Resources.ResourceReader.ReadResources()
   at System.Resources.ResourceReader..ctor(String fileName)

Here is a gist to the contents of the resx file.

svick commented 6 years ago

This repository hosts the reference source for .Net Framework and is not for reporting issues with .Net Core. Can you close the issue here and reopen it in the coreclr repo, which is where the source for the .Net Core version of ResourceReader is located?

zeus82 commented 6 years ago

Done. Here is the new issue: https://github.com/dotnet/coreclr/issues/17946

Thanks.