title: Strange nodes in Visual Studio Solution Explorer project tree. How do I get rid of them.?
body: <p>I have a large solution with many .NET 6.0, C# projects.  One of them (a Prism module, one of 11) has a couple of odd tree nodes that appear in Solution Explorer.  I cannot get rid of them nor figure out why they are there.  One corresponds to a disk folder, one does not.  They are circled in red below</p>
  <p><a href="https://i.stack.imgur.com/t31RM.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t31RM.gif" alt="enter image description here" /></a></p>
  <p>The <code>obj</code> tree node obviously corresponds to an actual folder on disk.  But the same &quot;obj&quot; folder lives underneath most of the projects, yet only shows up for this one module.</p>
  <p>I've tried a few things to get rid of it</p>
  <ul>
  <li>I cannot delete the folder in the solution explorer.</li>
  <li>When I delete the folder on disk, the node disappears for a second but then the folder gets recreated automatically and it reappears.</li>
  <li>When I right click on the folder it in the Solution explorer, the only Git option I get for it is to add it to source control which is the opposite of what I want<a href="https://i.stack.imgur.com/795t0.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/795t0.gif" alt="Not what I want" /></a></li>
  <li>I have verified that it the folder does not exist in my Git repo so I didn't accidentally check it in.</li>
  </ul>
  <p>The <code>Imports</code> tree node makes even less sense  There's no folder for it on disk.   It seems to refer to items in .NET that my app is using.</p>
  <p>I cannot find any entry in the solution's .gitignore file that refers to either &quot;Imports&quot; or &quot;obj&quot; by name (except a line excluding &quot;*.obj&quot;).  I see nothing in the raw project file -- which is identical to many others that would explain this any of this.  I have gone through it line by line comparing to others.</p>
  <p>I am using VS 2022 but I know I saw this with VS2019 as well</p>
  <p>Any ideas how to make these things go away...?</p>