Skip to content
  • Home
  • About
  • No Access
  • Privacy Policy
Bits of .NET
Bits of .NET
  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy

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
  • Privacy Policy

Category: Visual Studio

Visual Studio

Visual Studio Builds Succeed but Output Is Wrong

- 16.01.26 - ErcanOPAK comment on Visual Studio Builds Succeed but Output Is Wrong

No errors, wrong behavior. WhyMultiple startup projects or wrong build profile selected silently. TipAlways verify the active configuration and startup project before debugging.

Read More
Visual Studio

Visual Studio Debugging Becomes Unreliable Over Time

- 15.01.26 - ErcanOPAK comment on Visual Studio Debugging Becomes Unreliable Over Time

Visual Studio Debugging Becomes Unreliable Over Time Breakpoints randomly stop hitting. WhySymbol (.pdb) caches get out of sync when builds switch configurations frequently. TipManually clean bin/obj and restart debugging — not just rebuild.

Read More
Visual Studio

Visual Studio Feels Heavy After Installing Extensions

- 14.01.26 - ErcanOPAK comment on Visual Studio Feels Heavy After Installing Extensions

The IDE was fast… until extensions piled up. WhyExtensions load services at startup and during builds, even when unused. TipDisable rarely used extensions instead of uninstalling everything.

Read More
Visual Studio

Visual Studio Slows Down After You Add Just One Project

- 13.01.26 - ErcanOPAK comment on Visual Studio Slows Down After You Add Just One Project

Solution grows slightly, IDE feels heavy. WhyMSBuild dependency graph recalculates more than expected when project references are tightly coupled. ImpactSlower builds, delayed IntelliSense, higher CPU usage. Tip Reduce direct project references; prefer shared libraries.

Read More
Visual Studio

Visual Studio IntelliSense Gets Worse Over Time

- 12.01.26 - ErcanOPAK comment on Visual Studio IntelliSense Gets Worse Over Time

At first it’s fast. Weeks later, it hesitates. WhyThe language server keeps growing symbol caches for large solutions. What Helps Restarting VS is not enough. Clear the ComponentModel cache occasionally. ResultFaster IntelliSense, lower CPU usage, fewer UI freezes.

Read More
Visual Studio

Visual Studio Builds Are Slow Even Without Code Changes

- 11.01.26 - ErcanOPAK comment on Visual Studio Builds Are Slow Even Without Code Changes

You hit Build again… still slow. WhyMSBuild may skip incremental builds if timestamps or analyzers changed. What Actually Helps Disable unnecessary analyzers per configuration instead of globally. ResultFaster builds without losing code quality.

Read More
Visual Studio

Visual Studio Uses Too Much RAM Even with Small Projects

- 07.01.26 - ErcanOPAK comment on Visual Studio Uses Too Much RAM Even with Small Projects

You open a tiny solution… memory spikes instantly. WhyVisual Studio loads analyzers, live diagnostics, and background code models eagerly. ImpactSlower builds, sluggish IntelliSense, high battery usage. Fix Disable unnecessary background features: Turn off CodeLens Limit live analyzers for non-critical projects This keeps the IDE responsive without breaking core features.

Read More
Visual Studio

Visual Studio Builds Succeed but App Runs Old Code

- 06.01.26 - ErcanOPAK comment on Visual Studio Builds Succeed but App Runs Old Code

You change the code, rebuild… nothing changes. WhyVisual Studio may reuse cached binaries when project references are unchanged. ImpactYou debug a version that no longer exists. Fix Disable Fast Up-To-Date Check Force MSBuild execution <PropertyGroup> <DisableFastUpToDateCheck>true</DisableFastUpToDateCheck> </PropertyGroup>  

Read More
Visual Studio

Visual Studio Breakpoints Are Never Hit

- 05.01.26 - ErcanOPAK comment on Visual Studio Breakpoints Are Never Hit

The app runs, but breakpoints stay hollow. Why this happensPDB files are out of sync with the compiled binaries. Root causeIncremental builds reuse outdated symbols. Fix Clean solution and force a full rebuild.Also verify “Just My Code” settings.

Read More
Visual Studio

Visual Studio Shows No Errors but App Won’t Start

- 04.01.26 - ErcanOPAK comment on Visual Studio Shows No Errors but App Won’t Start

Build succeeds. Run does nothing. Why this happensStartup project is misaligned with the actual executable entry point. Why it mattersYou debug the wrong project for hours. FixExplicitly set the correct startup project and launch profile.

Read More
Visual Studio

Visual Studio “Find All References” Misses Usages

- 03.01.26 | 03.01.26 - ErcanOPAK comment on Visual Studio “Find All References” Misses Usages

You rename a method… and production breaks. Why this happensReflection, DI containers, and source generators bypass static reference tracking. Why it mattersRefactors appear safe but silently break runtime behavior. FixSearch for string-based registrations and generated code outputs before refactoring.

Read More
Visual Studio

Visual Studio Debug Mode Lies About Performance

- 03.01.26 - ErcanOPAK comment on Visual Studio Debug Mode Lies About Performance

Your app is slow in Debug, fast in Release — or the opposite. Why this happensDebug disables JIT optimizations, inlining, and adds tracking hooks. Why it mattersYou may “fix” a problem that doesn’t exist in production. Life-saving ruleAlways profile Release build + Attach to Process.

Read More
Visual Studio

Visual Studio Builds Succeed but Runtime Crashes

- 02.01.26 - ErcanOPAK comment on Visual Studio Builds Succeed but Runtime Crashes

Your solution builds perfectly… yet crashes immediately. Why this happensDifferent projects target different runtime versions, but MSBuild doesn’t warn you. Fix Force a single runtime in Directory.Build.props: <Project> <PropertyGroup> <TargetFramework>net8.0</TargetFramework> </PropertyGroup> </Project> Why it worksIt guarantees consistent compilation and runtime behavior across all projects.

Read More
Visual Studio

Visual Studio Runs Fine… Until You Attach Debugger

- 01.01.26 | 01.01.26 - ErcanOPAK comment on Visual Studio Runs Fine… Until You Attach Debugger

Ever noticed your app slowing down only when debugging? Why it happensThe debugger disables certain JIT optimizations and adds tracking hooks. Why it mattersPerformance bugs may disappear in Release but appear in Debug — or vice versa. Life-saving tipAlways reproduce performance issues using Release + Attach to Process.

Read More
Visual Studio

Visual Studio — Debugging the Wrong Code? Check Shadow Copy

- 31.12.25 - ErcanOPAK comment on Visual Studio — Debugging the Wrong Code? Check Shadow Copy

Sometimes VS runs an old assembly. Root Cause Shadow copied DLLs remain locked. Fix Stop debugging Delete bin/ and obj/ Restart Visual Studio

Read More
Visual Studio

Visual Studio — CPU Spikes Caused by Live Analysis

- 30.12.25 - ErcanOPAK comment on Visual Studio — CPU Spikes Caused by Live Analysis

Background analyzers consume CPU. ✅ Fix Disable unnecessary live analyzers.

Read More
Visual Studio

Visual Studio — IntelliSense Uses Different Compiler

- 29.12.25 - ErcanOPAK comment on Visual Studio — IntelliSense Uses Different Compiler

Code builds but IntelliSense errors appear. 🧠 Reason Different language service pipeline. ✅ Fix Restart language service or clear .vs folder.

Read More
Visual Studio

Multi-Line Editing

- 29.12.25 - ErcanOPAK comment on Multi-Line Editing

The Problem: You need to change public string to public int on 20 different lines. The Fix: Hold Alt and drag your mouse cursor vertically (or Shift + Alt + Down Arrow). You can now type on multiple lines simultaneously.

Read More
Visual Studio

Visual Studio — “Build Succeeded” but App Uses Old DLLs

- 28.12.25 - ErcanOPAK comment on Visual Studio — “Build Succeeded” but App Uses Old DLLs

🧠 Cause Incremental build cache mismatch. ✅ Fix Clean + Rebuild entire solution.

Read More
Visual Studio

Visual Studio — “Random” Test Failures Are Parallelism

- 27.12.25 - ErcanOPAK comment on Visual Studio — “Random” Test Failures Are Parallelism

Tests passing alone, failing together? ❌ Cause Shared static state. ✅ Fix Make tests isolated or disable parallel execution.

Read More
Visual Studio

Visual Studio — Build Is Slow Because of File Watchers

- 25.12.25 - ErcanOPAK comment on Visual Studio — Build Is Slow Because of File Watchers

VS watches everything. ❌ Cost CPU usage Disk churn ✅ Fix Exclude large folders from file watchers.

Read More
Visual Studio

Visual Studio — Solution Filters Save Massive Load Time

- 21.12.25 - ErcanOPAK comment on Visual Studio — Solution Filters Save Massive Load Time

Large solutions load slowly. Fix Use .slnf (Solution Filter) Load only what you need Faster startup Lower memory usage

Read More
Visual Studio

IntelliSense Slow? It’s the Node.js Server

- 19.12.25 - ErcanOPAK comment on IntelliSense Slow? It’s the Node.js Server

VS runs a Node process for JS/TS language services. ✅ Fix Restart TS server from command palette.

Read More
Visual Studio

Solution Loads Slowly — Roslyn Cache Corruption

- 17.12.25 - ErcanOPAK comment on Solution Loads Slowly — Roslyn Cache Corruption

VS silently rebuilds analyzers. ✅ Fix Delete: %LOCALAPPDATA%\Microsoft\VisualStudio\17.* Reopen solution → instant load.

Read More
Visual Studio

Breakpoints Not Hit — Wrong Startup Project

- 17.12.25 - ErcanOPAK comment on Breakpoints Not Hit — Wrong Startup Project

Multi-project solutions bite hard. ✅ Fix Right-click correct project → Set as Startup Project

Read More
Visual Studio

Visual Studio Debugger Skips Lines — Optimized Build Trap

- 16.12.25 - ErcanOPAK comment on Visual Studio Debugger Skips Lines — Optimized Build Trap

Debugger lies when optimization is on. ✅ Fix Build Configuration → DebugDisable Optimize Code

Read More
Visual Studio

Visual Studio “IntelliSense Wrong Types” — Stale Solution Cache

- 15.12.25 - ErcanOPAK comment on Visual Studio “IntelliSense Wrong Types” — Stale Solution Cache

Types show incorrectly? Suggestions are wrong? ✅ Fix Close VS and delete: .vs/ bin/ obj/ Reopen solution → fixed.

Read More
Visual Studio

Visual Studio “F5 Takes Forever” — IIS Express Cache

- 14.12.25 - ErcanOPAK comment on Visual Studio “F5 Takes Forever” — IIS Express Cache

✅ Fix Delete: .vs/ Then restart Visual Studio. Why IIS Express config cache becomes corrupted.

Read More
Visual Studio

Visual Studio High CPU When Idle? Live Code Analysis

- 13.12.25 - ErcanOPAK comment on Visual Studio High CPU When Idle? Live Code Analysis

Background analyzers can eat CPU. ✅ Fix Disable unused analyzers: Tools → Options → Text Editor → C# → Advanced Turn off: Full solution analysis

Read More
Visual Studio

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

- 12.12.25 - ErcanOPAK comment on VS “Auto-Using Not Working” — The Broken Roslyn Cache Fix

When VS stops adding using statements automatically: ✔ Fix Delete folder: %LocalAppData%\Microsoft\VisualStudio\<version>\ComponentModelCache Restart VS → everything works again.

Read More
Page 8 of 9
« Previous 1 … 3 4 5 6 7 8 9 Next »

Posts pagination

« Previous 1 … 6 7 8 9 Next »
November 2026
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« Oct    

Most Viewed Posts

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

Recent Posts

  • Network Speed Monitor Windows Application v2.5.1
  • Ağ Hızı İzleyici Windows Uygulaması v2.5.1
  • How to make theater mode the default for Youtube
  • The AI Prompt That Audits a Function for Thread-Safety Gaps
  • Ajax: Fix a Fetch Request Caching a Response Despite No-Store
  • WordPress: Fix a Navigation Block Losing Submenu Items After Sync
  • Visual Studio: Fix CodeLens Reference Counts Stuck at Stale Numbers
  • C#: Fix a UTF-8 String Literal Behaving Differently in a Switch
  • Photoshop: Fix a Liquify Mesh Snapping Back on a Smart Object
  • The AI Prompt That Turns a Crash Dump Into a Short Repro Script

Most Viewed Posts

  • How to make theater mode the default for Youtube (1,068)
  • Get the User Name and Domain Name from an Email Address in SQL (990)
  • How to add default value for Entity Framework migrations for DateTime and Bool (986)
  • Get the First and Last Word from a String or Sentence in SQL (865)
  • How to select distinct rows in a datatable in C# (859)

Recent Posts

  • Network Speed Monitor Windows Application v2.5.1
  • Ağ Hızı İzleyici Windows Uygulaması v2.5.1
  • How to make theater mode the default for Youtube
  • The AI Prompt That Audits a Function for Thread-Safety Gaps
  • Ajax: Fix a Fetch Request Caching a Response Despite No-Store

Social

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