agentleFS
G1JoshiG1Joshi/Agent-Skills/skills/tools/visual-studio/SKILL.md

visual-studio

Skill15 starsChanged 42 days agoMITView on GitHub

Expert Visual Studio IDE assistance covering C++, .NET/C#, MSBuild project configurations, diagnostic tools, and enterprise debugging. Use when building solutions, configuring MSBuild properties, profiling CPU/memory bottlenecks, or debugging multi-threaded C++/C# applications.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Solution: Commit root .editorconfig recognized by Visual Studio MSBuild engine.

    line 87
  2. Very specific:

    Check .vsconfig into the root of the repository to ensure all team members install identical SDKs and toolchains.

    line 104
  3. Distinctive:

    Use Live Share for collaborative real-time pair programming and debugging.

    line 107
  4. Very specific:

    Commit .vs/ hidden folders or user-specific .suo and .user files into Git.

    line 111
  5. Distinctive:

    Leave debugging diagnostic tools running in long manual benchmark tests.

    line 113

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Visual Studio

Visual Studio is a comprehensive 64-bit IDE for .NET and C++ software development, providing enterprise-grade diagnostics, multi-threaded debugging, and MSBuild solution architectures.

When to Use

  • Enterprise Windows C++ & C# Development: Developing WinUI 3, WPF, DirectX, Windows Services, and ASP.NET Core apps.
  • Advanced Native Diagnostics & Profiling: Memory profiling, thread lock contention analysis, and GPU debugging.
  • Enterprise Solution Management: Managing multi-project .sln architectures with hundreds of interconnected projects.
  • Automated MSBuild CI/CD Pipelines: Compiling solutions headlessly using MSBuild and Visual Studio Build Tools.

Quick Start

1. Build Solution via Developer Command Prompt

:: Build Release configuration
msbuild MySolution.sln /p:Configuration=Release /p:Platform="Any CPU" /m

2. Essential Debugging Shortcuts

  • F5: Start Debugging
  • Ctrl + F5: Start Without Debugging
  • F9: Toggle Breakpoint
  • F10: Step Over
  • F11: Step Into
  • Shift + F11: Step Out
  • Ctrl + Alt + P: Attach to Process

Core Concepts

Enterprise Component Specification (.vsconfig)

Standardizing installed IDE components across engineering teams:

{
  "version": "1.0",
  "components": [
    "Microsoft.VisualStudio.Workload.ManagedDesktop",
    "Microsoft.VisualStudio.Workload.NetWeb",
    "Microsoft.VisualStudio.Workload.NativeDesktop",
    "Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
    "Microsoft.VisualStudio.Component.Windows11SDK.22621",
    "Microsoft.VisualStudio.Component.Git",
    "Component.GitHub.Copilot"
  ]
}

Install components automatically via command line:

vs_enterprise.exe --config .vsconfig --passive --norestart

MSBuild CLI Automation in CI Pipelines

Compiling enterprise solutions headlessly:

:: Build Solution in Release mode with maximum parallelism
msbuild EnterpriseApp.sln /p:Configuration=Release /p:Platform="Any CPU" /m /verbosity:minimal /p:ContinuousIntegrationBuild=true

:: Execute VSTest test runner
vstest.console.exe tests\UnitTests\bin\Release\net8.0\UnitTests.dll --Parallel --Logger:trx

Advanced Diagnostics & Concurrency Profiling

  • Open Debug -> Performance Profiler (Alt + F2).
  • Select diagnostic engines: CPU Usage, .NET Object Allocation Tracking, and Database Analysis.
  • Click Start to record hot paths, memory allocation spikes, and thread locks.
  • Inspect flame graphs and call trees to eliminate algorithmic bottlenecks.

Common Patterns

EditorConfig Formatting Rules (.editorconfig)

Problem: Inconsistent brace styles, indentation, and imports across Visual Studio team members.
Solution: Commit root .editorconfig recognized by Visual Studio MSBuild engine.

# .editorconfig
root = true

[*.{cs,vb}]
indent_style = space
indent_size = 4
csharp_new_line_before_open_brace = all
csharp_preferred_modifier_order = public,private,protected,internal,static,readonly,async:suggestion

Best Practices

Do:

  • Check .vsconfig into the root of the repository to ensure all team members install identical SDKs and toolchains.
  • Enable Code Analysis on Build and treat compiler warnings as errors (<TreatWarningsAsErrors>true</TreatWarningsAsErrors>).
  • Configure Central Package Management (CPM) via Directory.Packages.props for unified NuGet versions.
  • Use Live Share for collaborative real-time pair programming and debugging.

Don't:

  • Commit .vs/ hidden folders or user-specific .suo and .user files into Git.
  • Build solutions with unbounded log output; use /verbosity:minimal in CI to prevent runner timeouts.
  • Leave debugging diagnostic tools running in long manual benchmark tests.

Troubleshooting

ErrorCauseSolution
The breakpoint will not currently be hit. No symbols have been loaded.PDB symbol files missing or mismatched between build output and debug directoryEnable Debug > Windows > Modules, right-click module, and load PDB symbols; verify build output matches.
MSBuild error: The target "Build" does not exist in the projectTarget SDK or workload not installedLaunch Visual Studio Installer and ensure appropriate workload (e.g. .NET Desktop, Desktop C++) is checked.
Solution load time excessively slowLarge solution with hundreds of unloaded projectsEnable Tools > Options > Projects and Solutions > Reopen documents on solution load (uncheck).

References

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.