Common Language RunTime /clr Support for MSFS WASM-type project

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?

Hi @DeadCertainty,

The CLR is not supported in the MSFS WASM environment and there are no plans to support it in the future.

Best regards,

Eric / Asobo

Thanks Eric. Not the answer I’d hoped for but I now know I can stop wasting time on that approach.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.