

Since Visual Studio 2022 is now 64-bit and runs MSBuild in-process, it now runs a 64-bit version of MSBuild, including when you hit F5 or Ctrl-F5.

Visual Studio 2019 is the last version of Visual studio that used the 32-bit version of MSBuild for builds within Visual Studio. The Developer Command Prompt for Visual Studio also sets PATH to include the MSBuild bin folder. Both are installed in every copy of Visual Studio and Visual Studio Build Tools, and scripts that call msbuild.exe by full path can select which to use. MSBuild has both 32- and 64-bit executables. The changes described here affect only the Visual Studio MSBuild and will not affect builds started through dotnet build. MSBuild is part of both Visual Studio and the. Visual Studio and Build Tools have included 64-bit MSBuild since Visual Studio 2013, so you can do this in your current version of Visual Studio, as well as with the Visual Studio 2022 previews. The best way to know if this will affect you is by testing your build with a 64-bit version of MSBuild. However, if your build includes a task that is 32-bit only and does not correctly mark itself as a 32-bit task, your build may fail. This will not cause any problems for most people. Visual Studio’s shift to 64-bit means your builds in Visual Studio 2022 will run in a 64-bit MSBuild.
