I'm in the process of working on a legacy project that was written in C++/CLI as a Windows Application with everything being compiled into a single .exe file. Since I've been tasked with writing some mathematically complex code I want to add unit testing to the solution. Upon doing so (Solution > Add > New Project > Managed Test Project) and attempting to add the project as a reference to the test project I get the following error:
The main project is configured as "Pure MSIL Common Language Runtime support (/clr:pure)" and everything obvious seems to be in order, but I keep getting the error message. How can I get the solution setup to include the Unit Testing Framework?
Google Search Phrase: Add Unit Tests to C++/CLI Project
<Reference>
element. To test a C++/CLI assembly you need to use a C# or VB.NET unit test project. – Hans Passant