views:

53

answers:

1

Hi folks,

I've got a stock standard visual studio 2008 solution with 3 class library projects. Nothing in them - even the default class1.cs file has been deleted.

The first thing I do is open up the References then delete all of them except Core, System and System.Core.

I then add a new class, which creates Class1.cs.

Now, System.Data and System.Xml have been added to the references again. Why? Is there any way i can stop this from happening?

Cheers :)

+3  A: 

Yes there is- see this blog post. By default those references get added back in when you add the class.

RichardOD
Awesome! thanks heaps for the link and solution.
Pure.Krome
No worries- an interesting question.
RichardOD