Author Topic: Solution Tree structure - MainForm  (Read 1321 times)

scott.clark

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
Solution Tree structure - MainForm
« on: January 27, 2015, 10:14:39 AM »
This is something odd that I have seen in my solution and I don't know why it happens, what if means if anything.  Maybe someone can shed some light on it.

When I open up my solution and expand the solution tree for MainForm, it lists

Mainform.vb
     >MainForm.Designer.vb
                  >MainForm.vb
       MainForm.resx
     >MainForm.vb

After after opening Mainform.vb[Design] and performing a rebuild the tree changes to:

Mainform.vb
     >MainForm.Designer.vb
           >MainForm.vb
      MainForm.resx

The "MainForm.vb" dissappears from the tree.

If I then close Mainform.vb[Design] then the tree changes to:

Mainform.vb
     >MainForm.Designer.vb
           >MainForm.vb
      MainForm.resx
     >MainForm.vb


The question is, Why does the "MainForm.vb" dissappear from the Solution Tree?  Where did it go?


Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Solution Tree structure - MainForm
« Reply #1 on: January 27, 2015, 02:12:47 PM »
I've never noticed this before. My guess is that when you perform a Rebuild All, VS essentially deletes all compiled code and wipes out it's class maps, therefore removes the class map from the tree. It takes another action, such as closing and opening the form to get VS to rebuild the map and update the tree.