farlee2121 / ResXResourceReader.NetStandard

ResXResourceReader and ResXResourceWriter adapted for .Net Standard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exception when using ResXResourceWriter

borgdylan opened this issue · comments

When using ResXResourceWriter I get the following:

System.Resources.MissingManifestResourceException: Could not find the resource "Fourstarzz.CopyTranslationsToJson.ResxReader.SR.resources" among the resources "System.Resources.NetStandard.SR.resources" embedded in the assembly "System.Resources.NetStandard", nor among the resources in any satellite assemblies for the specified culture. Perhaps the resources were embedded with an incorrect name.

Please fix the following line to use the name "System.Resources.NetStandard.SR.resources" instead of "Fourstarzz.CopyTranslationsToJson.ResxReader.SR.resources":

global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Fourstarzz.CopyTranslationsToJson.ResxReader.SR", typeof(SR).Assembly);

Woops, that one slipped through the net. I'll try to get a new version out by tomorrow

I also may need to look into my notification settings, github didn't send me an email about your issue 😒

A new version is being validated by Nuget as we speak. Should be out shortly.

Something to note, this error only shows up when it's trying to read a different error message from the SR resource file. This means that the code that threw this exception will probably throw a new exception with the new version, just with better details.

Thanks for the report!