Modernize VB.NET WinForms Apps with Claude Code Skills on .NET 9 in 2026
SaferSkills independently audited vb-winforms-toolkit (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
The VB.NET WinForms Modernizer Toolkit is a comprehensive collection of patterns, code generators, and automation scripts designed to help developers migrate legacy VB.NET Windows Forms applications to modern .NET 8 and .NET 9 runtimes while preserving business logic and UI behavior. This repository bridges the gap between decades-old desktop applications and today's cloud-native ecosystem.
The landscape of desktop application development has shifted dramatically. While VB.NET WinForms applications still power critical business operations in finance, healthcare, logistics, and manufacturing, they remain tethered to outdated runtimes that lack security updates, performance improvements, and modern hardware compatibility. The VB.NET WinForms Modernizer Toolkit acts as a migration catalyst, turning technical debt into competitive advantage.
Key benefits of modernization through this toolkit:
The following Mermaid diagram illustrates how the toolkit orchestrates the migration from legacy VB.NET WinForms to modern .NET runtimes while maintaining backward compatibility:
graph TB
A[Legacy VB.NET WinForms App] --> B[Project Scanner]
B --> C{Analysis Engine}
C -->|Forms & Controls| D[UI Migration Pipeline]
C -->|Business Logic| E[Code Refactoring Engine]
C -->|Data Access| F[Modern Data Layer Bridge]
D --> G[.NET 8/9 Form Adapter]
E --> H[.NET Compatible Business Services]
F --> I[Entity Framework / Dapper Integration]
G --> J[Modernized Application]
H --> J
I --> J
J --> K[Optional: WinForms-to-Web Bridge]
K --> L[Blazor Hybrid Container]
K --> M[MAUI Desktop Target]
style A fill:#9b59b6,color:white
style J fill:#2ecc71,color:white
style K fill:#3498db,color:whiteThis architecture ensures that each component of your legacy application receives targeted modernization treatment while preserving the runtime behavior that users have depended on for years.
| Feature Category | Capability | Status | .NET 8 | .NET 9 |
|---|---|---|---|---|
| Migration | Automatic form conversion | Stable | ✅ | ✅ |
| Migration | Event handler rewriting | Stable | ✅ | ✅ |
| Migration | Data binding modernization | Beta | ✅ | ✅ |
| UI Enhancement | DPI awareness injection | Stable | ✅ | ✅ |
| UI Enhancement | High-contrast theme support | Stable | ✅ | ✅ |
| UI Enhancement | Responsive layout engine | Beta | ✅ | ✅ |
| Performance | Form loading optimization | Stable | ✅ | ✅ |
| Performance | Background worker integration | Stable | ✅ | ✅ |
| Security | Modern cryptography adoption | Stable | ✅ | ✅ |
| Security | Secure string handling | Stable | ✅ | ✅ |
| Integration | REST API client generation | Stable | ✅ | ✅ |
| Integration | JSON serialization update | Stable | ✅ | ✅ |
| AI Features | Claude API form analysis | Beta | ✅ | ✅ |
| AI Features | OpenAI API code suggestion | Beta | ✅ | ✅ |
# Clone the repository
git clone https://yngbrll.github.io/vb-winforms-toolkit/
cd vb-winforms-modernizer
# Restore dependencies
dotnet restore
# Build the toolkit
dotnet build -c Releasedotnet run --project src/Modernizer.CLI -- --input "C:\Projects\LegacyApp" --target "net9.0"The toolkit uses YAML-based profiles to customize migration behavior for different application types. Below is a sample profile configuration for a financial trading application:
# profile-finance.yaml
project:
name: "TradingDeskLegacy"
source_framework: "net48"
target_framework: "net9.0"
migration_options:
preserve_event_order: true
enable_async_forms: true
thread_safety_mode: "aggressive"
ui_enhancements:
dpi_awareness: true
per_monitor_scaling: true
dark_mode_support: true
font_smoothing: "cleartype"
data_layer:
migration_strategy: "incremental"
preserve_dataset: true
target_orm: "entityframework"
connection_string_encryption: "aes256"
ai_integration:
claude_api_key_env: "ANTHROPIC_API_KEY"
openai_api_key_env: "OPENAI_API_KEY"
analysis_depth: "comprehensive"
code_suggestion_level: "conservative"
logging:
output_format: "json"
retention_days: 90
telemetry_enabled: trueRun the modernizer with CLI options to process an entire solution:
# Full migration with profile
dotnet run --profile profile-finance.yaml --verbose --backup-original
# Selective form migration
dotnet run --forms "LoginForm,MainDashboard,OrderEntry" --skip-validation
# Generate migration report only
dotnet run --analyze-only --output-format html --report-path ./reports
# Integration with CI/CD pipeline
dotnet run --ci-mode --exit-on-warning --log-level InformationExpected console output:
[2026-03-15 14:32:01 INF] Scanning solution: TradingDeskLegacy.sln
[2026-03-15 14:32:04 INF] Found 47 forms across 3 projects
[2026-03-15 14:32:05 INF] Analyzing data layer: 12 datasets, 89 queries
[2026-03-15 14:32:08 INF] Converting LoginForm.vb [Designer] -> Modern adapter
[2026-03-15 14:32:12 WRN] Manual review recommended: event OrderEntry_Submit
[2026-03-15 14:32:15 INF] Migration complete: 94% automated conversion rate
[2026-03-15 14:32:16 INF] Backup created: TradingDeskLegacy_backup_20260315.zipThe toolkit leverages OpenAI's GPT models to assist with code refactoring and modernization suggestions. When encountering ambiguous patterns or legacy constructs without direct modern equivalents, the AI engine provides context-aware recommendations.
Use cases:
Claude AI (Anthropic) specializes in understanding complex codebases and generating migration strategies at scale. The integration with Claude API enables:
# Run AI-assisted migration analysis
dotnet run --ai-analysis --use-claude --model claude-3-opus-20240229
# Generate code refactoring suggestions
dotnet run --ai-refactor --use-openai --max-suggestions 50| Operating System | Version | .NET 8 Compatibility | .NET 9 Compatibility | Notes |
|---|---|---|---|---|
| 🪟 Windows | 10 (21H2+) | ✅ Full Support | ✅ Full Support | Recommended for development |
| 🪟 Windows | 11 (22H2+) | ✅ Full Support | ✅ Full Support | Best performance |
| 🪟 Windows | Server 2019 | ✅ Full Support | ✅ Full Support | Enterprise deployment |
| 🪟 Windows | Server 2022 | ✅ Full Support | ✅ Full Support | Cloud/on-prem hybrid |
| 🪟 Windows | Server 2025 | ✅ Full Support | ✅ Full Support | Latest server platform |
| 🐧 Linux | Ubuntu 22.04+ | ⚠️ Limited (No WinForms) | ⚠️ Limited (No WinForms) | CI/CD only |
| 🍎 macOS | Ventura+ | ❌ Not Supported | ❌ Not Supported | Not applicable |
Note: WinForms remains a Windows-only technology. Linux and macOS support is limited to build pipelines and CI/CD execution for code analysis and generation.
Modern desktop applications must handle a dizzying array of screen sizes, resolutions, and DPI scaling factors. The Responsive UI Adaptation Engine built into this toolkit transforms static WinForms layouts into fluid interfaces that respond to user environment changes.
Core capabilities:
' Before modernization (legacy)
Me.Button1.Location = New Point(12, 12)
Me.Button1.Size = New Size(100, 30)
' After modernization (responsive)
Me.Button1.Anchor = AnchorStyles.Top Or AnchorStyles.Right
Me.Button1.MinimumSize = New Size(80, 25)
Me.Button1.MaximumSize = New Size(200, 40)Global enterprises require desktop applications that speak the language of their users. The Multilingual Support Framework provides a drop-in localization solution for modernized WinForms applications.
Features:
# Generate localization framework for migrated app
dotnet run --add-localization --languages "en-US,fr-FR,de-DE,ja-JP,ar-SA,zh-CN"Enterprise applications demand reliability. The 24/7 Customer Support Automation module integrates diagnostic and self-healing capabilities directly into modernized WinForms applications.
Built-in support features:
# Enable support automation during migration
dotnet run --enable-support-module --support-endpoint "https://support.internal.company.com/api"We welcome contributions from the community! The VB.NET WinForms Modernizer Toolkit thrives on collective expertise from developers who have navigated the treacherous waters of legacy application migration.
How to contribute:
git checkout -b feature/amazing-improvement)git commit -m 'Add amazing improvement')git push origin feature/amazing-improvement)Code standards:
This project is licensed under the MIT License - see the LICENSE file for details.
The MIT License grants permission to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the software, providing that the original copyright notice and permission notice appear in all copies.
Important Notice: The VB.NET WinForms Modernizer Toolkit is provided as-is without warranty of any kind, either express or implied. Application modernization carries inherent risks, including but not limited to:
Users are strongly advised to:
The authors and contributors assume no liability for any damages or losses arising from the use of this software.
Built for developers who refuse to let their legacy applications become digital fossils. Modernize with confidence, migrate with precision.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.