George Mauer
George Mauer

Reputation: 122172

What references does Visual Studio add when I accidentally click Add New Winform?

Strangely enough, this is not on The Google. And I could really use a list so I know which ones I need to remove.

Upvotes: 0

Views: 144

Answers (3)

DCNYAM
DCNYAM

Reputation: 12126

On the references screen, there is an Unused References button. This will show you what reference are not being used and gives you the choice to remove them. This works 95% of the time. Every so often, if there is a shared library in there, it will tell you it isn't being used but it really is.

This is useful for problems like this, not just Windows Forms.

Upvotes: 2

Ryan Brunner
Ryan Brunner

Reputation: 14851

Just ran a little experiment (cleared references, added a winform), and it adds:

  • System
  • System.Data
  • System.Drawing
  • System.Windows.Forms
  • System.Xml

Upvotes: 1

JaredPar
JaredPar

Reputation: 755141

Pretty much it will make sure that the following are added.

  • System.Windows.Forms
  • System.Drawing

It may also try to add System.Data and System.Xml but those are defaults on most project types so it's hard to tell.

Upvotes: 1

Related Questions