My Visual Studio solution has both .NET Framework managed code projects as well as a C++ MSFS WASM project.
I have defined certain common POCO Classes that have identical characteristics in both the WASM project as well as the managed code projects. This seems pretty wasteful and very error-prone because each time I need to (say) add a Property to the class definition in one, I then need to add a similarly defined Property in the other.
To overcome that I had assumed that I could use CLR in the MSFS WASM module by enabling Common Language Runtime Support in the project’s “Properties>Advanced>C++/CLI Properties”. However, if I do that, the compiler fails with MSBuild error MSB8053 (’ MSB8053: /clr
(common language runtime) not supported by clang-cl.’
How can I resolve this - or am I stuck with not being able to access CLR?