Whats the difference between using "devenv solution.sln" and "cmake --build --target" on windows

Is it in the end giving me the exact same result? Are both using msbuild in the end?

I always used devenv in the past because thats what most google result tell me but it’s much faster to simply use cmake.

Yes, CMake just runs MSBuild for Visual Studio generators.