User1070236303 posted
I have an embedded javascript file in the main assembly of a wap project, I can register this script no problem, I also marked the file as a WebResource:
[assembly: WebResource( "tree.js", "text/javascript" )]
Now I want add some localization for this file, so I put in the main project a tree.js.resx file, at the moment I have:
[assembly: WebResource( "tree.js", "text/javascript" )]
[assembly: ScriptResource( "tree.js", "tree.js", "Something" )]
Everything works fine I get localized strings in tree.js (in Something.ResKey form).
Now I try to move only the tree.js.resx file to a satellite assembly. So I want to use this:
[assembly: WebResource( "tree.js", "text/javascript" )] // The js file is still in the main assembly.
[assembly: ScriptResource( "tree.js", "somesatelliteassembly.tree.js", "Something" )] // The localization is in a satellite assembly.
But this throw an exception, maybe this combination is not supported, any idea would be helpful.
Here is the exception:
Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "somesatelliteassembly.tree.js.resources" was correctly embedded or linked into assembly "mainassembly" at compile time, or that
all the satellite assemblies required are loadable and fully signed.