dotnetBuildBuddy.
Accessing Settings
You can configure DotNET Build Buddy in several ways:- Settings UI: Open VS Code Settings (
Ctrl+,/Cmd+,) and search for “DotNET Build Buddy” - settings.json: Edit your
settings.jsonfile directly - Workspace Settings: Configure settings specific to your workspace
Core Settings
Auto Update
Automatically update project files when changes are detected.When enabled, the extension monitors file changes and automatically updates project and solution files. Set to
false to disable automatic updates and use manual commands only.When
autoUpdate is disabled, you can still manually update files using the command palette commands. See fileWatcher.ts:60-64 for implementation details.File Watching Settings
These settings control which files the extension monitors for changes.Watch Patterns
File patterns to watch for changes.Glob patterns that specify which source files should trigger project updates when modified, created, or deleted.
Exclude Patterns
Patterns to exclude from watching.Glob patterns for directories and files that should be ignored during file monitoring. This prevents unnecessary updates from build artifacts and dependencies.
NuGet Compatibility Settings
These settings control the NuGet package compatibility checking feature.Enable Compatibility Checks
Enable NuGet package compatibility checking.When enabled, the extension checks NuGet packages against your target framework and provides warnings for incompatible packages.
Enable API Lookups
Enable real-time NuGet API lookups for package information.When enabled, the extension fetches package metadata from NuGet.org for accurate compatibility information. If disabled, only local rules are used.
Disabling API lookups reduces network requests but may result in less accurate compatibility information. See nugetCompatibilityChecker.ts:124-138 for fallback logic.
Cache Settings
Enable caching of NuGet compatibility checks.When enabled, compatibility check results are cached to improve performance and reduce API calls.
Cache expiry time in seconds.How long cached compatibility results remain valid before being re-checked. Default is 3600 seconds (1 hour).
Ignored Packages
List of NuGet package names or patterns to ignore during compatibility checks.Use exact package names or wildcard patterns (e.g.,
Internal.*) to exclude packages from compatibility checking.API Timeout
NuGet API request timeout in milliseconds.How long to wait for NuGet API responses before timing out. Default is 5000ms (5 seconds).
Increase the timeout if you have a slow network connection or frequently see timeout errors.
Complete Configuration Example
Here’s a complete example with all settings configured:Settings by Use Case
Minimal Network Usage
For environments with limited network access:Performance Optimized
For large projects with many packages:Development with Internal Packages
For projects using internal or custom NuGet packages:Next Steps
Watch Patterns
Learn how to configure file watching patterns
NuGet Settings
Deep dive into NuGet compatibility settings