I am just starting a metro app. The main application is a c++ metro app. The application builds and runs fine.
I have a c# library added to the solution and it builds everything builds fine.
I reference the C# library from the C++ application and it will not build with the following errors:
error WMC1006: Cannot resolve Assembly or Windows Metadata file ‘System.Runtime.dll’
error EMC9999: Type universe cannot resolve assembly: System.Runtim, Version…………………
Any ideas what’s going on? I have not added any references to my c# class library. It’s a vanilla metro library.
Thanks!
Eric
Unfortunately, as Kris Vandermotten points out, C++/CX cannot consume C# class libraries (only WinMD files), and there are many restrictions on WinMD files that do not exist for managed class libraries.