I created a Windows Runtime Component DLL with the following class:
namespace WindowsRuntimeComponent1
{
public ref class Class1 sealed
{
public:
Class1();
static Platform::Type^ GetTypeTest();
};
}
When I consume this from a C# Windows Store application, the application fails the WACK with errors:
The type System.Type referenced by type WindowsRuntimeComponent1.__IClass1Statics in file C:\Program Files\WindowsApps\8c839635-2b37-41ba-a6eb-8e01fdfac0d3_1.0.0.2_x86__ze744fdnb0cr8\WindowsRuntimeComponent1.winmd was not found. All types referenced in metadata
files must be discoverable.
The type System.Type referenced by type WindowsRuntimeComponent1.Class1 in file C:\Program Files\WindowsApps\8c839635-2b37-41ba-a6eb-8e01fdfac0d3_1.0.0.2_x86__ze744fdnb0cr8\WindowsRuntimeComponent1.winmd was not found. All types referenced in metadata files
must be discoverable.