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

**URL:** https://discourse.cmake.org/t/whats-the-difference-between-using-devenv-solution-sln-and-cmake-build-target-on-windows/5418
**Category:** Usage
**Created:** [April 10, 2022, 12:50am UTC](https://discourse.cmake.org/t/whats-the-difference-between-using-devenv-solution-sln-and-cmake-build-target-on-windows/5418 "2022-04-10T00:50:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Lothar\_Scholz](https://discourse.cmake.org/user_avatar/discourse.cmake.org/lothar_scholz/32/1332_2.png) [@Lothar\_Scholz](https://discourse.cmake.org/u/Lothar_Scholz)
#### Post date: [April 10, 2022, 12:50am UTC](https://discourse.cmake.org/t/whats-the-difference-between-using-devenv-solution-sln-and-cmake-build-target-on-windows/5418/1 "2022-04-10T00:50:50Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [April 10, 2022, 2:58pm UTC](https://discourse.cmake.org/t/whats-the-difference-between-using-devenv-solution-sln-and-cmake-build-target-on-windows/5418/2 "2022-04-10T14:58:26Z")

</div>

Yes, CMake just runs MSBuild for Visual Studio generators.
