| name | msvc-build |
| description | Use when compiling MSVC C++ projects, debugging build errors, or performing clean and incremental builds |
| version | 1 |
MSVC Build Skill
Overview
This skill provides guidance for compiling and building Microsoft Visual C++ projects using MSBuild, with intelligent error detection and resolution suggestions.
When to Use
Use this skill when you need to:
- Compile C++ projects in Visual Studio solutions (.sln)
- Build individual project files (.vcxproj)
- Debug compilation errors
- Perform incremental or clean builds
- Compile with specific configurations (Debug/Release, Win32/x64)
Prerequisites
- Visual Studio 2019/2022 installed
- MSBuild available in PATH or at standard location
- Project solution (.sln) or project file (.vcxproj)
Workflow
Step 1: Detect Build Environment
Automatically locate MSBuild:
- Check PATH for
msbuild.exe
- Search standard VS2019/2022 installation paths
- Report MSBuild version and location
Step 2: Analyze Project Structure
Identify:
- Solution file (.sln) location
- Project dependencies
- Available configurations (Debug/Release)
- Available platforms (Win32/x64)
Step 3: Execute Build
Full Solution Build:
MSBuild Solution.sln /p:Configuration=Debug /p:Platform=Win32 /m
Single Project Build: