My Visual Studio 2015 solution has the following projects:
- .NET assembly
- UWP assembly
- PCL assembly
- .NET Unit Test Library
- UWP Unit Test App
The PCL assembly contains an embedded string resource table (via an RESX file in the project) and a simple class that allows callers to get strings out of the string resource table. The PCL is designed to allow sharing of strings between the .NET and UWP assemblies.
When the .NET Unit Test Library is run, the unit tests call the .NET assembly, which gets strings out of the PCL assembly. This works as expected.
When the UWP Unit Test App is run, the unit tests call the UWP assembly, which gets strings out of the PCL assembly. This fails with the following exception message:
System.Resources.MissingManifestResourceException: Unable to load resources for resource file [blah] in package [guid].
I tried this solution, but the call to GetForViewIndependentUse() failed with a COMException stating that "ResourceMap Not Found".
What's going on? This call chain works for the .NET unit test stack. I have checked to ensure that the Neutral Language is set to "English" for all assemblies. What is the best way for me to share a string table between the .NET assembly and the UWP assembly?