As described in the header, I am trying to add a link to the UWP C # library to the ULP C ++ DLL project. Both projects are focused on Windows 10 v10.0.14393.0. When the link is added, everything seems valid and the link appears in the list of links without any errors. When you try to use the link and compile, the following error is provided:
C2871 A namespace with this name does not exist.
Am I missing something? The only options when creating a new Universal C ++ project for Windows are the DLL, Static Lib, and Windows Runtime components. For C ++, there is no class library option. I tried all three different projects with the same result. Can someone suggest a solution and / or explain why I cannot reference the UWP C # class library from the UWP C ++ project? It looks like it should be possible. I know that this was possible in the past, before UWP.
The code is simple.
C # code:
namespace ClassLibrary1
{
public class Class1
{
}
}
C ++ Code:
using namespace ClassLibrary1;
source
share