If your solution is purely modern .NET, you might not even need the full Visual Studio Build Tools. Installing the .NET SDK is often enough.
The is a lightweight, standalone engine that lets you compile, build, and deploy software applications without installing the complete Visual Studio Integrated Development Environment (IDE). It packages the highly efficient, 64-bit MSBuild engine alongside specialized compilers and software development kits (SDKs). build tools for visual studio 2022
Visual Studio 2022 has embraced open-source C++ standards. If you are writing cross-platform C++, you likely aren't using .sln files generated by the IDE. If your solution is purely modern
– Accelerate MSBuild/CMake builds
This is the official, standalone installer provided by Microsoft. It allows you to install only the compilers, libraries, and build agents without the heavy overhead of the graphical IDE. It packages the highly efficient, 64-bit MSBuild engine
Visual Studio 2022 uses the dotnet CLI under the hood for many modern project types. Knowing these commands allows you to replicate exactly what VS is doing on your local machine inside a script.