CMake/Tests/CSharpLinkFromCxx/UsefulManagedCppClass.hpp
Robert Dailey 076a356cd1 VS: Support C# project references
When specifying a pure C# target in the `target_link_libraries()` call to
another C++ target, a `<ProjectReference>` was setup for it (we wanted this)
but also a corresponding `.lib` was added under `<AdditionalDependencies>`
(we didn't want this).

This change introduces a check that prevents `.lib` linker options from
being used when the corresponding target for that library is a C# target.

Fixes: #17678
2018-02-23 08:53:17 -06:00

17 lines
226 B
C++

using namespace System;
namespace CSharpLibrary
{
public ref class UsefulManagedCppClass
{
public:
UsefulManagedCppClass();
void RunTest();
private:
String^ m_usefulString;
};
}