Przejdź do treści
Biblioteka skilli
Programowanie · Integracja z narzędziem

visual-studio

/visual-studio

Pomaga w pracy z Visual Studio: C++, .NET i C#, konfiguracja MSBuild, narzędzia diagnostyczne, profilowanie CPU i pamięci oraz debugowanie aplikacji wielowątkowych.

Repozytorium
Agent-Skills ↗
Licencja
MIT
Ostatnia zmiana repozytorium
01.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
1
Przestarzałość

Brak sygnałów. Repozytorium zmienione 01.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Pomaga w pracy z Visual Studio: C++, .NET i C#, konfiguracja MSBuild, narzędzia diagnostyczne, profilowanie CPU i pamięci oraz debugowanie aplikacji wielowątkowych.

Oryginalny opis (EN)

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.

Jak działa

  1. When to Use
  2. Quick Start
  3. Core Concepts
  4. Common Patterns
  5. Best Practices
  6. Troubleshooting
  7. References
Sekcje z nagłówków SKILL.md, w oryginale · 122 linii, 573 słów
Podgląd SKILL.md
---
name: visual-studio
description: 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.
---

# 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

```cmd
:: 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:

```json
{
  "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:

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

### MSBuild CLI Automation in CI Pipelines

Compiling enterprise solutions headlessly:

```cmd
:: 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.

```ini
# .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

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

## References

- [Visual Studio Documentation](https://learn.microsoft.com/en-us/visualstudio/)

Wersje

W bazie nie ma innych skilli o nazwie visual-studio.

Migawka bazy z 13.11.2026 · wersja paczki 7f6cb3e842b3 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 98deploy-msbuild-to-vs
    Wdraża lokalnie zbudowane pliki MSBuild do Visual Studio, by IDE używało zmian przy testach i debugowaniu.
  • 100vscode
    Pomaga konfigurować Visual Studio Code: settings.json, debugowanie przez launch.json, automatyzację w tasks.json, dev containers i rozszerzenia przestrzeni roboczej.
  • 100use-bootstrap-msbuild
    Prowadzi testowanie reprodukcji błędów na lokalnie zbudowanym MSBuild, aby sprawdzić poprawkę przed zgłoszeniem PR.
  • 90dotnet
    Pomaga w pracy z .NET: C#, MSBuild, ASP.NET Core, EF Core, MAUI, NuGet, testami i narzędziami SDK.
  • 100vbnet
    Pomaga utrzymywać i modernizować aplikacje Visual Basic .NET: LINQ, WinForms, WPF, ASP.NET oraz migracje korporacyjnych systemów .NET.
  • 98controlling-visual-studio
    Steruje działającym Visual Studio z terminala: otwiera pliki, uruchamia polecenia IDE, debugowanie i operacje na projektach.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.