what are you trying to achieve: analyze mixed solution with C++ and C# using Cmake
what have you tried so far to achieve this: Used MSBuild until now.
As latest release of a used third party library is not documented for the use with MSBuild but only with CMake, we consider to use Cmake and package management.
To avoid pitfalls, I wanted to ask before starting if anyone has already experience with analyzing mixed C++/C# solution using cmake.
It’s not clear to me if you intent to use CMake to generate .vcxproj files (cmake -G Visual Studio 17 2022) or another build system (for instance cmake -G Ninja). I don’t know either if you’re using the build wrapper or directly generate a compilation database (switching to CMake might be a good opportunity to switch).
But not matter what, as long as you continue to compile the C# part of your solution with MSBuild, I don’t foresee any specific issue.
During the project launch, we can make fundamental decisions.
Development will use Visual Studio, we have C# components from the environment in our enterprise group. The debug capabilities beyond the language border for the mixed project should be available. After some further reading, CMake only support C# with the “Visual Studio 17 2022” generator. Then we have a Visual Studio solution and can always use the described solution for mixed projects with MSBuild and the build wrapper.