Welcome to DotNET Build Buddy
DotNET Build Buddy is a VS Code extension that automatically manages .NET project files and provides intelligent NuGet compatibility checking. This guide will help you get started quickly.Installation
From VS Code Marketplace
Open VS Code Extensions Panel
Press
Ctrl+Shift+X (Windows/Linux) or Cmd+Shift+X (Mac) to open the Extensions panel.Install the Extension
Click the Install button on the DotNET Build Buddy extension by DotNET-Build-Buddy.
Requirements
- VS Code: Version 1.74.0 or higher
- Workspace: Must contain .NET files (
.cs,.fs,.vb) or project files
Activation
The extension automatically activates when you open a workspace containing .NET files.How Activation Works
DotNET Build Buddy activates when it detects any of the following files in your workspace:- Source files:
*.cs,*.fs,*.vb - Project files:
*.csproj,*.fsproj,*.vbproj - Solution files:
*.sln
When the extension activates successfully, you’ll see a notification: “DotNET Build Buddy is ready to manage your .NET projects!”
Verification
Check Extension Status
Open the Extensions panel (
Ctrl+Shift+X) and verify that DotNET Build Buddy is enabled.View Output Logs
Open the Output panel (
Ctrl+Shift+U) and select “DotNET Build Buddy” from the dropdown to see activation messages.Quick Start
Starting from Scratch
If you’re starting a new .NET project without existing project files:Create Source Files
Create your .NET source files (e.g.,
Program.cs, App.fs, Module.vb) in your workspace directory.Program.cs
Automatic Project File Generation
The extension automatically detects your source files and creates appropriate project files (
.csproj, .fsproj, or .vbproj) based on your file structure.Project files are created in the same directory as your source files.
Solution File Generation
A solution file (
Solution.sln) is automatically generated at the workspace root, including all discovered projects.Working with Existing Projects
If you already have .NET project files:Extension Auto-Updates
The extension automatically monitors your files. When you add, modify, or delete source files, project files are updated automatically.
Available Commands
Access these commands through the Command Palette (Ctrl+Shift+P):
DotNET Build Buddy: Generate Solution File
DotNET Build Buddy: Generate Solution File
Manually generates a solution file (
.sln) that includes all project files in your workspace.When to use: When you want to create or refresh the solution file without updating project files.DotNET Build Buddy: Update Project Files
DotNET Build Buddy: Update Project Files
Manually updates all project files based on current source files in your workspace.When to use: When automatic updates are disabled or you want to force an immediate update.
DotNET Build Buddy: Refresh All .NET Files
DotNET Build Buddy: Refresh All .NET Files
Updates both project files and solution file in one operation.When to use: When you want a complete refresh of all generated files.
Understanding Auto-Updates
By default, DotNET Build Buddy automatically monitors your workspace and updates project files when changes occur.How Auto-Updates Work
- File Watching: The extension monitors file patterns defined in
watchPatternssetting (default:**/*.cs,**/*.fs,**/*.vb) - Debouncing: Changes are debounced (1 second delay) to avoid excessive updates
- Smart Grouping: Files are grouped by directory structure, creating separate projects when appropriate
- Configuration Preservation: Existing project settings, NuGet packages, and custom properties are preserved
Excluded Directories
The following directories are excluded from monitoring by default:**/bin/**- Build output**/obj/**- Intermediate files**/node_modules/**- Node.js dependencies
Basic Configuration
Access settings through: File > Preferences > Settings (orCtrl+,) and search for “DotNET Build Buddy”.
Essential Settings
settings.json
For complete configuration options, see the Configuration Reference documentation.
NuGet Compatibility Overview
One of the most powerful features of DotNET Build Buddy is intelligent NuGet package compatibility checking.What It Does
- Real-time Checking: Verifies package compatibility with your target framework
- Inline Diagnostics: Shows warnings and errors directly in project files
- Smart Suggestions: Recommends correct versions and alternative packages
- Framework Upgrades: Suggests when to upgrade your target framework
Example
When you open a.csproj file with incompatible packages:
MyProject.csproj
Error Message
❌ EntityFramework: Package is not compatible with net8.0🔄 Alternative: Microsoft.EntityFrameworkCore (8.0.0)📝 Recommendation: Modern Entity Framework Core for .NET Core/.NET 5+
Next Steps
Working with Projects
Learn how to manage project files, organize your workspace, and handle multi-project solutions.
NuGet Management
Master NuGet compatibility checking, package suggestions, and dependency management.
Configuration
Explore all configuration options and customize the extension to your needs.
Troubleshooting
Find solutions to common issues and learn debugging techniques.
Getting Help
View Extension Logs
View Extension Logs
- Open Output panel:
Ctrl+Shift+U - Select “DotNET Build Buddy” from dropdown
- Review log messages for activity and errors
Check Developer Console
Check Developer Console
- Open Developer Tools:
Ctrl+Shift+I(Windows/Linux) orCmd+Option+I(Mac) - Switch to Console tab
- Look for “DotNET Build Buddy” messages
Report Issues
Report Issues
If you encounter problems:
- Check the Troubleshooting Guide
- Search existing GitHub Issues
- Create a new issue with:
- VS Code version
- Extension version
- Steps to reproduce
- Output panel logs