The big picture: what I'm trying to do is write code in both C # and C ++ to achieve a good balance of performance and performance. This does not concern the reasons for reusing code; I just want to write new code in my native C ++ when it suits me without committing all its horrors.
I have a solution with 4 projects:
- GUI Interface: C # WPF
- Logic_Cs: C # DLL, a reference implementation of high-level game logic
- Logic_CLI: CLI DLL, the interface between managed and unmanaged code
- Logic_Cpp: C ++ lib with embedded version
At some point, it all worked fine. In my GUI project, I could switch between a C # / C ++ implementation just by using the namespace from the corresponding DLL.
Then I apparently changed something, and now I cannot get the namespace in the Logic_CLI project, which should be recognized in the GUI project, although the Logic_Cs namespace still works fine.
Yes, I added the correct links, installed the dependencies, rebuilt and recreated my entire solution structure from scratch; nothing helps.
I notice that the C # DLL builds in a folder in its own project directory, and the CLI in a solution directory; but the GUI application seems to be looking for the DLL in its correct directory anyway, and I am not getting any DLL complaints; he just refuses to import the namespace.
Previously, when all this worked, I did not explicitly export anything from the CLI DLL; and I do not do this for the C # DLL. It should just work, no?
source share