My Visual Studio 2015 solution has the following projects:
- .NET assembly
- UWP assembly
- PCL assembly
- .NET Unit Test Library
- UWP Unit Test Application
The PCL assembly contains an embedded row resource table (via the .resx file in the project) and a simple class that allows callers to output rows from the row table. PCL is designed to share strings between .NET assemblies and UWP.
When the .NET Unit Test library is running, unit tests invoke the .NET assembly, which extracts the rows from the PCL assembly. This works as expected.
When the UWP Unit Test application is running, unit tests invoke the UWP assembly, which outputs the lines from 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 GetForViewIndependentUse() call failed with a COMException , indicating that "ResourceMap was not found."
What's happening? This call chain works for the .NET Unit Test stack. I checked that the Neutral language is set to "English" for all assemblies. What is the best way to exchange a row table between a .NET assembly and a UWP assembly?
source share