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: Fix CodeLens Reference Counts Stuck at Stale Numbers

- 21.11.26 - ErcanOPAK comment on Visual Studio: Fix CodeLens Reference Counts Stuck at Stale Numbers

🛠️ Visual Studio: Fix CodeLens Reference Counts Stuck at Stale Numbers CodeLens reference counts come from a background indexer tied to the workspace’s own source database, and that index updates incrementally from whatever edits it has actually processed so far. After a large cross-project rename or refactor, Visual Studio doesn’t always force a full re-index […]

Read More
Visual Studio

Visual Studio: Fix a Breakpoint Disabled by a Symbol Mismatch

- 20.11.26 - ErcanOPAK comment on Visual Studio: Fix a Breakpoint Disabled by a Symbol Mismatch

🛠️ Fix a Breakpoint Silently Disabled by a Symbol Mismatch A breakpoint that shows a plain red dot usually just means the debugger hasn’t hit it yet, but a breakpoint with a small warning glyph next to it is telling you something different: the module currently loaded in the process doesn’t match the PDB and […]

Read More
Visual Studio

Visual Studio: Fix Quick Actions Hiding Behind a Stale Squiggle

- 19.11.26 - ErcanOPAK comment on Visual Studio: Fix Quick Actions Hiding Behind a Stale Squiggle

🛠️ Fix Quick Actions Hiding Behind a Stale Squiggle The lightbulb/screwdriver Quick Actions menu (Ctrl+.) is bound to a specific diagnostic snapshot, not to whatever squiggle is currently drawn on screen. When Visual Studio’s background analysis enters its “Suspended” state — shown as a small icon in the status bar during a large solution load, […]

Read More
Visual Studio

Visual Studio: Fix IntelliCode Suggestions Stuck on an Old Snippet

- 18.11.26 - ErcanOPAK comment on Visual Studio: Fix IntelliCode Suggestions Stuck on an Old Snippet

🛠️ Visual Studio: Fix IntelliCode Suggestions Stuck on an Old Snippet IntelliCode trains a small, repo-specific completion model from the patterns already in your codebase, and that model is cached locally rather than rebuilt on every keystroke. After a large rename, a deleted API, or a refactor that changes the dominant pattern in a file, […]

Read More
Visual Studio

Visual Studio: Fix IntelliSense Still Showing a Downgraded NuGet API

- 17.11.26 - ErcanOPAK comment on Visual Studio: Fix IntelliSense Still Showing a Downgraded NuGet API

🛠️ Visual Studio: Fix IntelliSense Still Showing a Downgraded NuGet API Downgrading a NuGet package (reverting from v8 back to v6, say, to dodge a breaking change) often leaves IntelliSense still completing members from the newer API long after the restore finishes, because the Roslyn workspace that drives completion caches its view of each referenced […]

Read More
Visual Studio

Visual Studio: Fix Hot Reload Ignoring an Init-Only Property Edit

- 16.11.26 - ErcanOPAK comment on Visual Studio: Fix Hot Reload Ignoring an Init-Only Property Edit

🛠️ Visual Studio: Fix Hot Reload Ignoring an Init-Only Property Edit The Hot Reload engine in Visual Studio can patch the body of most methods in a running process without a restart, but it does this by swapping compiled IL for the method you edited while leaving everything else exactly as it was. Editing the […]

Read More
Visual Studio

Visual Studio: Fix Attach to Process Hiding Another User’s Service

- 15.11.26 - ErcanOPAK comment on Visual Studio: Fix Attach to Process Hiding Another User’s Service

🛠️ Visual Studio: Fix Attach to Process Hiding Another User’s Service The Attach to Process dialog, by default, only lists processes visible to and owned by your current Windows user account. A Windows Service running under a different logon account — LocalSystem, NetworkService, or a dedicated service account — sits at a different privilege level […]

Read More
Visual Studio

Visual Studio: Fix Hot Reload Silently Skipping a Record’s Primary Constructor Edit Because Hot Reload Only Supports Method Body Changes

- 14.11.26 - ErcanOPAK comment on Visual Studio: Fix Hot Reload Silently Skipping a Record’s Primary Constructor Edit Because Hot Reload Only Supports Method Body Changes

🛠️ Fix Hot Reload Silently Skipping a Record’s Primary Constructor Edit Because Hot Reload Only Supports Method Body Changes Hot Reload applies most statement-level edits inside method bodies while the app keeps running, but its supported-edit list is narrower for constructs that affect type shape. Adding, removing, or reordering a primary constructor’s parameters — and […]

Read More
Visual Studio

Visual Studio: Fix a Breakpoint Never Hitting Because Just My Code Treats an Optimized Release DLL as Non-User Code

- 13.11.26 - ErcanOPAK comment on Visual Studio: Fix a Breakpoint Never Hitting Because Just My Code Treats an Optimized Release DLL as Non-User Code

🛠️ Visual Studio: Fix a Breakpoint Never Hitting Because Just My Code Treats an Optimized Release DLL as Non-User Code The debugger’s Just My Code option decides whether a stack frame counts as “yours” by checking whether the module was built with debug symbols and without optimizations enabled, not by checking which project the source […]

Read More
Visual Studio

Visual Studio: Fix the Live Unit Testing Icon Staying Gray on a Test Project Forever Because the Project Targets a Framework Live Unit Testing Doesn’t Support

- 12.11.26 - ErcanOPAK comment on Visual Studio: Fix the Live Unit Testing Icon Staying Gray on a Test Project Forever Because the Project Targets a Framework Live Unit Testing Doesn’t Support

🛠️ Visual Studio: Fix the Live Unit Testing Icon Staying Gray on a Test Project Forever Because the Project Targets a Framework Live Unit Testing Doesn’t Support Live Unit Testing runs your test suite continuously in the background and paints a green check or a red cross directly next to each covered line as you […]

Read More
Visual Studio

Visual Studio: Fix CodeLens Reference Counts Staying at Zero for an Entire Solution Because the Local CodeIndex Cache Under %LocalAppData% Never Finished Its Initial Build

- 11.11.26 - ErcanOPAK comment on Visual Studio: Fix CodeLens Reference Counts Staying at Zero for an Entire Solution Because the Local CodeIndex Cache Under %LocalAppData% Never Finished Its Initial Build

🛠️ Visual Studio: Fix CodeLens Reference Counts Staying at Zero for an Entire Solution Because the Local CodeIndex Cache Under %LocalAppData% Never Finished Its Initial Build CodeLens relies on a background indexing service that builds and caches the solution’s full symbol-reference graph the first time a solution opens, storing that cache under the hidden .vs […]

Read More
Visual Studio

Visual Studio: Fix ‘The Breakpoint Will Not Currently Be Hit’ Warning Appearing Even After a Clean Rebuild Because a Stale PDB From a Different Build Configuration Is Still Loaded

- 10.11.26 - ErcanOPAK comment on Visual Studio: Fix ‘The Breakpoint Will Not Currently Be Hit’ Warning Appearing Even After a Clean Rebuild Because a Stale PDB From a Different Build Configuration Is Still Loaded

🛠️ Fix ‘The Breakpoint Will Not Currently Be Hit’ Warning Appearing Even After a Clean Rebuild Because a Stale PDB From a Different Build Configuration Is Still Loaded The debugger matches a breakpoint to a running process by comparing the source file’s checksum against the sequence point information baked into the loaded PDB, not by […]

Read More
Visual Studio

Visual Studio: Fix the Debugger’s “Just My Code” Silently Skipping a Breakpoint Set Inside a NuGet Package’s Source Because the Package Ships No Matching Source Link

- 09.11.26 - ErcanOPAK comment on Visual Studio: Fix the Debugger’s “Just My Code” Silently Skipping a Breakpoint Set Inside a NuGet Package’s Source Because the Package Ships No Matching Source Link

🛠️ Fix the Debugger’s “Just My Code” Silently Skipping a Breakpoint Set Inside a NuGet Package’s Source Because the Package Ships No Matching Source Link The “Just My Code” debugging feature filters out stack frames and breakpoints in anything Visual Studio doesn’t consider yours — specifically, code with no matching debug symbols it can resolve […]

Read More
Visual Studio

Visual Studio: Fix Hot Reload Refusing to Apply a Code Change Inside a Record’s Primary Constructor Because Editing a Type’s Core Shape Always Forces a Full Rebuild

- 08.11.26 - ErcanOPAK comment on Visual Studio: Fix Hot Reload Refusing to Apply a Code Change Inside a Record’s Primary Constructor Because Editing a Type’s Core Shape Always Forces a Full Rebuild

🛠️ Visual Studio: Fix Hot Reload Refusing to Apply a Code Change Inside a Record’s Primary Constructor Because Editing a Type’s Core Shape Always Forces a Full Rebuild Hot Reload can swap a running method’s implementation while the debugger is still attached, but it only works for changes that don’t alter a type’s actual shape […]

Read More
Visual Studio

Visual Studio: Fix the Exception Settings Window’s Break-When-Thrown Checkbox Not Actually Stopping the Debugger Because the Exception Is Already Handled Further Up the Call Stack

- 07.11.26 - ErcanOPAK comment on Visual Studio: Fix the Exception Settings Window’s Break-When-Thrown Checkbox Not Actually Stopping the Debugger Because the Exception Is Already Handled Further Up the Call Stack

🛠️ Visual Studio: Fix the Exception Settings Window’s Break-When-Thrown Checkbox Not Actually Stopping the Debugger Because the Exception Is Already Handled Further Up the Call Stack Checking “Break When Thrown” for an exception type in the Exceptions window (Ctrl+Alt+E) is supposed to stop the debugger the instant that exception is raised anywhere, even inside a […]

Read More
Visual Studio

Visual Studio: Fix the Test Explorer Showing a Parameterized Test’s Last Run Result for Every Data Row Until You Expand the Group and Rerun It

- 06.11.26 - ErcanOPAK comment on Visual Studio: Fix the Test Explorer Showing a Parameterized Test’s Last Run Result for Every Data Row Until You Expand the Group and Rerun It

🛠️ Visual Studio: Fix the Test Explorer Showing a Parameterized Test’s Last Run Result for Every Data Row Until You Expand the Group and Rerun It Test Explorer groups a parameterized test’s individual data rows under one collapsed node, and that collapsed node’s icon is a rollup Test Explorer computed and cached the last time […]

Read More
Visual Studio

Visual Studio: Fix the Parallel Stacks Window Merging Two Different Threads Into One Box Because Both Happen to Share the Exact Same Call Site

- 05.11.26 - ErcanOPAK comment on Visual Studio: Fix the Parallel Stacks Window Merging Two Different Threads Into One Box Because Both Happen to Share the Exact Same Call Site

🛠️ Visual Studio: Fix the Parallel Stacks Window Merging Two Different Threads Into One Box Because Both Happen to Share the Exact Same Call Site The Parallel Stacks window draws one box per distinct call stack, not one box per thread, and when two completely unrelated threads happen to be suspended at the exact same […]

Read More
Visual Studio

Visual Studio: Fix the Diagnostic Tools Memory Usage Graph Showing a Misleading Dip Because Taking a Snapshot Forces a Full GC Right Before It Measures

- 04.11.26 - ErcanOPAK comment on Visual Studio: Fix the Diagnostic Tools Memory Usage Graph Showing a Misleading Dip Because Taking a Snapshot Forces a Full GC Right Before It Measures

🛠️ Fix the Diagnostic Tools Memory Usage Graph Showing a Misleading Dip Because Taking a Snapshot Forces a Full GC Right Before It Measures The Memory Usage tool in Visual Studio’s Diagnostic Tools window needs an accurate, stable object graph to report live object counts and sizes, so every time you click “Take Snapshot” it […]

Read More
Visual Studio

Visual Studio: Fix the CPU Usage Profiler Reporting Zero Samples for a Hot Method Because Tiered Compilation Never Promoted It Past Quick JIT During the Trace

- 02.11.26 - ErcanOPAK comment on Visual Studio: Fix the CPU Usage Profiler Reporting Zero Samples for a Hot Method Because Tiered Compilation Never Promoted It Past Quick JIT During the Trace

🛠️ Fix the CPU Usage Profiler Reporting Zero Samples for a Hot Method Because Tiered Compilation Never Promoted It Past Quick JIT During the Trace The CPU Usage diagnostic tool in Visual Studio samples whatever code is actually executing during a trace, and for the first moments after a .NET process starts, that code is […]

Read More
Visual Studio

Visual Studio: Fix the Object Browser Showing a Type as Missing Members Because It’s Reading a Reference Assembly Instead of the Implementation Assembly

- 01.11.26 - ErcanOPAK comment on Visual Studio: Fix the Object Browser Showing a Type as Missing Members Because It’s Reading a Reference Assembly Instead of the Implementation Assembly

🛠️ Fix the Object Browser Showing a Type as Missing Members Because It’s Reading a Reference Assembly Instead of the Implementation Assembly The Object Browser, Go To Definition, and IntelliSense can each resolve a type from a different assembly depending on what’s fastest to load, and for a project that produces reference assemblies as part […]

Read More
Visual Studio

Visual Studio: Fix the Call Hierarchy Window Showing Zero Callers for a Method Because It Only Indexes Projects Targeting the Active Solution Configuration

- 01.11.26 - ErcanOPAK comment on Visual Studio: Fix the Call Hierarchy Window Showing Zero Callers for a Method Because It Only Indexes Projects Targeting the Active Solution Configuration

🛠️ Fix the Call Hierarchy Window Showing Zero Callers for a Method Because It Only Indexes Projects Targeting the Active Solution Configuration The Call Hierarchy window and Find All References both answer from the same Roslyn workspace, and that workspace only ever contains the projects the current active solution configuration actually builds. A leaner configuration […]

Read More
Visual Studio

Visual Studio: Fix CodeLens Reference Counts Freezing on an Old Number Because the Background Index Build Silently Stopped After a Solution Filter Was Applied

- 01.11.26 - ErcanOPAK comment on Visual Studio: Fix CodeLens Reference Counts Freezing on an Old Number Because the Background Index Build Silently Stopped After a Solution Filter Was Applied

🛠️ Fix CodeLens Reference Counts Freezing on an Old Number Because the Background Index Build Silently Stopped After a Solution Filter Was Applied CodeLens’s “3 references” indicators above a method aren’t computed on the fly — they’re read from a background index that Visual Studio keeps up to date by watching every project currently loaded […]

Read More
Visual Studio

Visual Studio: Fix the Live Unit Testing Indicator Staying Stuck on a Stale Result Because the Test Project’s Output Path Was Excluded From the Watched File List

- 31.10.26 - ErcanOPAK comment on Visual Studio: Fix the Live Unit Testing Indicator Staying Stuck on a Stale Result Because the Test Project’s Output Path Was Excluded From the Watched File List

🛠️ Fix the Live Unit Testing Indicator Staying Stuck on a Stale Result Because the Test Project’s Output Path Was Excluded From the Watched File List Live Unit Testing works by instrumenting your test assemblies once, then watching the compiled outputs for changes so it can re-run only the tests whose code paths actually changed, […]

Read More
Visual Studio

Visual Studio: Fix the Git Changes Window Permanently Showing a File as Modified Because Core.autocrlf Keeps Re-Normalizing Its Line Endings on Every Save

- 31.10.26 - ErcanOPAK comment on Visual Studio: Fix the Git Changes Window Permanently Showing a File as Modified Because Core.autocrlf Keeps Re-Normalizing Its Line Endings on Every Save

🛠️ Fix the Git Changes Window Permanently Showing a File as Modified Because Core.autocrlf Keeps Re-Normalizing Its Line Endings on Every Save Visual Studio’s Git Changes window flags a file as modified by diffing the working copy against HEAD, which is normally exactly how it should work: edit something, see it listed, commit it, see […]

Read More
Visual Studio

Visual Studio: Fix IntelliCode’s Suggested Completions Disappearing After an Update Because the Local Model Cache Was Cleared and Never Rebuilt

- 31.10.26 - ErcanOPAK comment on Visual Studio: Fix IntelliCode’s Suggested Completions Disappearing After an Update Because the Local Model Cache Was Cleared and Never Rebuilt

🛠️ Fix IntelliCode’s Suggested Completions Disappearing After an Update Because the Local Model Cache Was Cleared and Never Rebuilt IntelliCode’s whole-line and argument suggestions come from a small model trained on your own codebase’s patterns, stored locally in a per-solution cache under your user profile. An update to Visual Studio or the IntelliCode extension itself […]

Read More
Visual Studio

Visual Studio: Fix NuGet Restoring a Newer Package Version Than packages.lock.json Specifies Because Locked Mode Was Never Enabled

- 31.10.26 - ErcanOPAK comment on Visual Studio: Fix NuGet Restoring a Newer Package Version Than packages.lock.json Specifies Because Locked Mode Was Never Enabled

🛠️ Fix NuGet Restoring a Newer Package Version Than packages.lock.json Specifies Because Locked Mode Was Never Enabled packages.lock.json exists so a restore resolves to exactly the same package versions on every machine, recording the precise version NuGet picked the first time instead of just the floating range in the csproj. NuGet only treats that file […]

Read More
Visual Studio

Visual Studio: Fix the “Go to Definition” Jumping to an Outdated .pdb Because the Debugger Is Using a Stale Symbol Cache From a Previous Build

- 30.10.26 - ErcanOPAK comment on Visual Studio: Fix the “Go to Definition” Jumping to an Outdated .pdb Because the Debugger Is Using a Stale Symbol Cache From a Previous Build

🛠️ Fix the “Go to Definition” Jumping to an Outdated .pdb Because the Debugger Is Using a Stale Symbol Cache From a Previous Build Visual Studio keeps a local symbol cache so it doesn’t re-fetch or re-parse the same .pdb twice, and it keys that cache entry on the module’s signature and age rather than […]

Read More
Visual Studio

Visual Studio: Fix the Peek Definition Window Showing Stale Code Because It Opened a Cached Metadata-as-Source View Instead of the Real File

- 30.10.26 - ErcanOPAK comment on Visual Studio: Fix the Peek Definition Window Showing Stale Code Because It Opened a Cached Metadata-as-Source View Instead of the Real File

🛠️ Fix the Peek Definition Window Showing Stale Code Because It Opened a Cached Metadata-as-Source View Instead of the Real File Peek Definition (Alt+F12) can only show real source for symbols that have source in your solution. For a symbol that comes from a referenced assembly with no linked source — a NuGet package, a […]

Read More
Visual Studio

Visual Studio: Fix Hot Reload Silently Refusing to Apply a Changed Lambda Expression Because It Captured a Different Local Than Before

- 30.10.26 - ErcanOPAK comment on Visual Studio: Fix Hot Reload Silently Refusing to Apply a Changed Lambda Expression Because It Captured a Different Local Than Before

🛠️ Fix Hot Reload Silently Refusing to Apply a Changed Lambda Expression Because It Captured a Different Local Than Before Hot Reload patches a running method’s IL in place, but it can only do that when the new version’s compiler-generated closure shape still matches the one already running. Editing a lambda so it captures a […]

Read More
Visual Studio

Visual Studio: Fix Find All References Grouping Every Call Site Under the Wrong Project Because Two Projects Target the Exact Same Assembly Name

- 29.10.26 - ErcanOPAK comment on Visual Studio: Fix Find All References Grouping Every Call Site Under the Wrong Project Because Two Projects Target the Exact Same Assembly Name

🛠️ Fix Find All References Grouping Every Call Site Under the Wrong Project Because Two Projects Target the Exact Same Assembly Name Find All References groups its results by the compiled assembly a call site belongs to, not by the project file that produced it. If two projects in the solution both build an output […]

Read More
Page 1 of 9
1 2 3 4 5 6 … 9 Next »

Posts pagination

1 2 3 … 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