Skip to content
  • Home
  • About
  • No Access
  • Privacy Policy
Bits of .NET
Bits of .NET
  • C#
  • Asp.Net Core
  • SQL
  • Windows
  • WordPress
  • AI
  • JavaScript
  • CSS
  • MORE
    • HTML
    • Ajax
    • Git
    • Docker
    • Kubernetes
    • Photoshop
    • Visual Studio

Bits of .NET

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

  • C#
  • Asp.Net Core
  • SQL
  • Windows
  • WordPress
  • AI
  • JavaScript
  • CSS
  • MORE
    • HTML
    • Ajax
    • Git
    • Docker
    • Kubernetes
    • Photoshop
    • Visual Studio
Visual Studio

Visual Studio: Fix Solution Explorer Ignoring Linked Folder Files

- 27.11.26 - ErcanOPAK

🛠️ Visual Studio: Fix Solution Explorer Ignoring Linked Folder Files

Solution Explorer’s built-in search box only indexes items that are actually part of the project file’s own item list. A folder added to a project as a linked item (an <ItemGroup> entry pointing outside the project’s directory, or a ‘Show All Files’ folder that was never explicitly included) often never gets added to that index the same way a normal on-disk file does, so a search for a class or file inside it quietly returns nothing even though the file opens fine if you browse to it by hand.

🔎 The Problem

<!-- .csproj -->
<ItemGroup>
  <Compile Include="..\Shared\Helpers\RetryPolicy.cs">
    <Link>Shared\RetryPolicy.cs</Link>
  </Compile>
</ItemGroup>
<!-- Ctrl+; search for "RetryPolicy" in Solution Explorer: 0 results -->
<!-- File > Open > File on the same path: opens instantly -->

✅ Fix: Make Linked Items Searchable Again

  • Use Ctrl+T (Go To All) instead of the Solution Explorer search box for linked items — it queries the workspace symbol index directly rather than the project tree’s own search filter, and finds linked files reliably.
  • If the team relies on Solution Explorer search specifically, consider physically moving the shared folder under the project and referencing it as a normal included item instead of a <Link>, so both search paths agree.
  • Close and reopen the solution after adding a new linked folder — the search index sometimes only catches up on the next load rather than updating live for items added through the project file rather than the IDE’s own ‘Add Existing Item’ dialog.

🚨 Why This Is Dangerous

  • A teammate who trusts an empty search result as ‘this file doesn’t exist in the solution’ can end up duplicating a shared helper class in a new location instead of reusing the one that was already there, because Solution Explorer told them it wasn’t found.

Solution Explorer’s search box searches the project tree it can see — not necessarily every file the build will actually compile.

— Developer Tip

Related posts:

Visual Studio: Fix a Test Explorer That Shows Tests as Not Run After a Successful Build

Visual Studio: Fix a Test Explorer That Shows Tests as Not Run After a Successful Build

Visual Studio: Fix an .editorconfig Rule That's Silently Ignored Because a Parent Folder Has a Confl...

Visual Studio: Fix an .editorconfig Rule That's Silently Ignored Because a Parent Folder Has a Confl...

Visual Studio 2022: Revolutionary Webhook Debugging with Dev Tunnels

Visual Studio 2022: Revolutionary Webhook Debugging with Dev Tunnels

Views: 6
Found this useful? Share it
XLinkedInWhatsApp

Post navigation

CSS: Fix a Backdrop Filter Not Rendering Behind a Fixed Header
Asp.Net Core: Fix a Cookie Policy Blocking a Cross-Site Redirect

Leave a Reply Cancel reply

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

Most Read

  1. 01How to make theater mode the default for Youtube 1,079 views
  2. 02How to add default value for Entity Framework migrations for DateTime and Bool 997 views
  3. 03Get the User Name and Domain Name from an Email Address in SQL 996 views
  4. 04Get the First and Last Word from a String or Sentence in SQL 873 views
  5. 05How to select distinct rows in a datatable in C# 868 views
  6. 06How to enable, disable and check if Service Broker is enabled on a database in SQL Server 671 views
  7. 07Add Constraint to SQL Table to ensure email contains @ 629 views
  8. 08Average of all values in a column that are not zero in SQL 584 views
  9. 09How to use Map Mode for Vertical Scroll Mode in Visual Studio 561 views
Bits of .NET

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

Social

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