What is DotNET Build Buddy?
DotNET Build Buddy is a powerful VS Code extension designed to eliminate the tedious manual work of managing .NET project files. It automatically generates and maintains your.sln, .csproj, .fsproj, and .vbproj files while providing intelligent NuGet package compatibility checking.
The extension activates automatically when it detects .NET-related files in your workspace - no manual configuration needed to get started.
Key Features
Automatic Project File Generation
Creates appropriate project files based on your source files - no more manual XML editing
Solution File Management
Generates and maintains .sln files that include all discovered projects automatically
Real-time File Monitoring
Watches for file changes and automatically updates project files when source files are added, modified, or deleted
NuGet Compatibility Checking
Verifies package compatibility with your target framework and suggests correct versions or alternatives
How It Works
DotNET Build Buddy follows a simple workflow:Activation
The extension activates when it detects .NET-related files (
.cs, .fs, .vb, or project files) in your workspaceAuto-Update
When changes are detected, it automatically updates the corresponding project files based on your directory structure
Multi-Language Support
The extension supports all major .NET languages:- C# -
.csfiles generate.csprojprojects - F# -
.fsfiles generate.fsprojprojects - VB.NET -
.vbfiles generate.vbprojprojects
Files are automatically grouped by directory structure, creating separate projects when appropriate for better organization.
Intelligent NuGet Features
DotNET Build Buddy goes beyond basic project management with advanced NuGet capabilities:Real-time Compatibility Checks
The extension fetches package information from the NuGet.org API to verify compatibility with your target framework. You’ll see:- Red squiggly lines on incompatible packages (errors)
- Yellow squiggly lines on version mismatches (warnings)
- Hover tooltips with detailed information and suggestions
Smart Suggestions
When compatibility issues are detected, you get actionable recommendations:Framework Upgrade Recommendations
The extension analyzes your dependencies and suggests framework upgrades when beneficial:Transitive Dependency Checking
Not only are direct dependencies verified, but the extension also checks compatibility of transitive dependencies (dependencies of dependencies) to prevent runtime surprises.Use Cases
Starting a new project from scratch
Starting a new project from scratch
- Create your source files (
.cs,.fs, or.vb) in your workspace - DotNET Build Buddy automatically creates appropriate project files
- A solution file is generated with all projects included
Adding files to an existing project
Adding files to an existing project
- Add new source files to your project directories
- The extension automatically updates project files to include the new files
- The solution file is updated automatically
Managing NuGet package updates
Managing NuGet package updates
- Add or update NuGet packages in your project files
- The extension checks compatibility with your target framework
- Inline suggestions appear with version and alternative recommendations
- Framework upgrade suggestions appear when all packages support a newer version
Working with multi-project solutions
Working with multi-project solutions
- Organize source files in different directories
- DotNET Build Buddy creates separate project files based on directory structure
- All projects are automatically included in a unified solution file
Requirements
To use DotNET Build Buddy, you need:- VS Code version 1.74.0 or higher
- .NET ecosystem files in your workspace (source files or project files)