بنقرة واحدة
msvc-build
Use when compiling MSVC C++ projects, debugging build errors, or performing clean and incremental builds
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Use when compiling MSVC C++ projects, debugging build errors, or performing clean and incremental builds
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Use when the current Agent LLM cannot process images directly and visual analysis is needed — bridges images through KimiCode CLI print mode to a multimodal Kimi model for text description
Use when building HUDs, menus, inventory screens, settings panels, or any widget-based interface in Unreal Engine 5. Also use when connecting C++ logic to UMG Blueprint visuals, handling gamepad or keyboard focus navigation, managing UI state, creating widget animations, or troubleshooting UMG performance issues like frame drops, hitches, or widget memory leaks.
Use when working in a DevFlow project with .devflow/ directory and gate-based step-by-step workflows
Use when contributing new skills to the skill-lib repository, installing skills locally, or verifying skill compliance with repository standards
Use when analyzing unfamiliar code modules, understanding system architecture, or preparing for refactoring
Use when implementing new modules from design documents, adding features to existing code, or generating structured implementations
| name | msvc-build |
| description | Use when compiling MSVC C++ projects, debugging build errors, or performing clean and incremental builds |
| version | 1 |
This skill provides guidance for compiling and building Microsoft Visual C++ projects using MSBuild, with intelligent error detection and resolution suggestions.
Use this skill when you need to:
Automatically locate MSBuild:
msbuild.exeIdentify:
Full Solution Build:
MSBuild Solution.sln /p:Configuration=Debug /p:Platform=Win32 /m
Single Project Build:
MSBuild Solution.sln /t:ProjectName /p:Configuration=Debug /p:Platform=Win32 /m
Incremental Build (faster):
MSBuild Project.vcxproj /p:Configuration=Debug /p:Platform=Win32
Clean Build:
MSBuild Solution.sln /t:Clean
MSBuild Solution.sln /p:Configuration=Debug /p:Platform=Win32 /m
Parse MSBuild output and categorize errors:
| Error Type | Pattern | Suggestion |
|---|---|---|
| Missing include | C1083: Cannot open include file | Check include paths, verify file exists |
| Undeclared identifier | C2065: 'X': undeclared identifier | Check header includes, verify declaration |
| Syntax error | C2143, C2061 | Check syntax, missing semicolons |
| Type undefined | C2027: use of undefined type | Forward declaration or missing include |
| Link error | LNK2019, LNK2001 | Check library dependencies, export macros |
| Precompiled header | C2857, C1853 | Ensure #include "StableHeaders.h" first |
# Debug Win32 (most common for development)
MSBuild Project.sln /p:Configuration=Debug /p:Platform=Win32 /m
# Release Win32
MSBuild Project.sln /p:Configuration=Release /p:Platform=Win32 /m
# Debug x64
MSBuild Project.sln /p:Configuration=Debug /p:Platform=x64 /m
# Build specific project only
MSBuild Project.sln /t:WorldServer /p:Configuration=Debug /p:Platform=Win32
# Build multiple specific projects
MSBuild Project.sln /t:LibClient;Network;Common;WorldServer
# Quiet - only errors
/v:q
# Minimal - errors and warnings (default)
/v:m
# Normal - standard output
/v:n
# Detailed - verbose output
/v:d
# Diagnostic - maximum detail
/v:diag
# Use all processors (recommended)
/m
# Use specific number of processors
/m:4
Error:
The term 'msbuild' is not recognized
Solution:
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exeC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exeError:
error C1083: Cannot open include file: 'Serialization/OutStream.h'
Causes:
Solutions:
Error:
error C2857: #include statement specified with the /Ycstdafx.h command-line option was not found
Solution:
#include "StableHeaders.h" (or project's PCH header)Error:
error LNK2019: unresolved external symbol
Solutions:
.sln file in Visual Studio/v:m, increase only when debuggingDebug/ or Release/ folders.props files are correctly imported.vcxproj files directly without backupsUser: Compile WorldServer project in Debug Win32
Agent:
📋 Build Plan
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Solution: Project/Server/Project.sln
Target: WorldServer
Configuration: Debug | Win32
Parallel: Yes (/m)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Finding MSBuild...
✓ Found: C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe
Version: 17.14.40
Executing build...
MSBuild Project.sln /t:WorldServer /p:Configuration=Debug /p:Platform=Win32 /m /v:minimal
Build Results:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ LibClient.lib
✓ Network.lib
✓ Database.lib
✓ Common.lib
✓ WorldServer.exe
Build succeeded with 0 errors, 3 warnings
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━