Skip to content

Bits of .NET

Daily micro-tips for C#, SQL, performance, and scalable backend engineering.

  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
Visual Studio

Speed Up Visual Studio 2022 Build Times by 60% with This Hidden Setting

- 01.02.26 | 01.02.26 - ErcanOPAK

If your Visual Studio builds are taking forever, there’s a game-changing setting most developers miss entirely.

The Problem: By default, Visual Studio uses only ONE CPU core for parallel project builds, even if you have 8, 16, or more cores available. This bottleneck can turn a 30-second build into a 2-minute nightmare.

The Solution:

Tools → Options → Projects and Solutions → Build and Run
Set "maximum number of parallel project builds" to: Number of CPU cores - 1

Why This Works:
MSBuild can compile independent projects simultaneously. If your solution has 10 projects and 8 cores, instead of building them sequentially (project by project), MSBuild builds 7 projects at once. The math is simple: 10 projects ÷ 7 parallel builds ≈ 43% faster than sequential building.

Real Example:

// Before: 120 seconds build time
Solution with 15 projects, 1 parallel build

// After: 48 seconds build time  
Solution with 15 projects, 7 parallel builds (on 8-core CPU)
60% reduction!

Pro Tip: Leave one core free (cores – 1) so your system stays responsive during builds. If you set it equal to your core count, Visual Studio might freeze your entire machine during large builds.

Bonus Hack: Add this to your .csproj files to skip unnecessary file copies:

<PropertyGroup>
  <CopyLocalLockFileAssemblies>false</CopyLocalLockFileAssemblies>
</PropertyGroup>

This prevents MSBuild from copying assembly lock files to output directories, saving precious I/O time on every build.

Related posts:

VS “Auto-Using Not Working” — The Broken Roslyn Cache Fix

Hidden Feature That Fixes “Works on My Machine” Bugs

Visual Studio “IntelliSense Wrong Types” — Stale Solution Cache

Post Views: 3

Post navigation

Why Exceptions Are Slower Than You Think
Remove Photoshop’s Annoying ‘Save As’ Cloud Dialog Forever in 3 Clicks

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

February 2026
M T W T F S S
 1
2345678
9101112131415
16171819202122
232425262728  
« Jan    

Most Viewed Posts

  • Get the User Name and Domain Name from an Email Address in SQL (934)
  • How to add default value for Entity Framework migrations for DateTime and Bool (830)
  • Get the First and Last Word from a String or Sentence in SQL (822)
  • How to select distinct rows in a datatable in C# (799)
  • How to make theater mode the default for Youtube (708)
  • Add Constraint to SQL Table to ensure email contains @ (571)
  • How to enable, disable and check if Service Broker is enabled on a database in SQL Server (552)
  • Average of all values in a column that are not zero in SQL (517)
  • How to use Map Mode for Vertical Scroll Mode in Visual Studio (473)
  • Find numbers with more than two decimal places in SQL (436)

Recent Posts

  • Windows 11 Snap Layouts: Organize 10+ Windows Without Alt+Tab Hell
  • Kubernetes Ingress: Expose Multiple Services Through One Load Balancer
  • Docker Compose: Launch Full Stack Apps with One Command (Node + Redis + Postgres)
  • Visual Studio Live Share: Real-time Collaborative Coding Like Google Docs
  • WordPress REST API: Turn Your Site into a Headless CMS for React/Vue Apps
  • WordPress Custom Post Types: Build Real Estate, Job Board, or Product Catalogs
  • Photoshop Batch Processing: Edit 1000 Images While You Sleep
  • Photoshop Smart Objects: Edit Once, Update Everywhere Without Quality Loss
  • Windows 11 WSL2: Run Linux at Native Speed Without Dual Boot
  • WordPress Speed Hack: How Lazy Loading Images Cuts Page Load Time in Half

Most Viewed Posts

  • Get the User Name and Domain Name from an Email Address in SQL (934)
  • How to add default value for Entity Framework migrations for DateTime and Bool (830)
  • Get the First and Last Word from a String or Sentence in SQL (822)
  • How to select distinct rows in a datatable in C# (799)
  • How to make theater mode the default for Youtube (708)

Recent Posts

  • Windows 11 Snap Layouts: Organize 10+ Windows Without Alt+Tab Hell
  • Kubernetes Ingress: Expose Multiple Services Through One Load Balancer
  • Docker Compose: Launch Full Stack Apps with One Command (Node + Redis + Postgres)
  • Visual Studio Live Share: Real-time Collaborative Coding Like Google Docs
  • WordPress REST API: Turn Your Site into a Headless CMS for React/Vue Apps

Social

  • ErcanOPAK.com
  • GoodReads
  • LetterBoxD
  • Linkedin
  • The Blog
  • Twitter
© 2026 Bits of .NET | Built with Xblog Plus free WordPress theme by wpthemespace.com