When any file in my project is changed, I have one UserControl that the IDE changes the .csproj file <SubType> between UserControl and Component. This happens even if the UserControl is not changed. Is there any way to stop the IDE from changing this

IDE changes the .csproj file <SubType> between UserControl and Component
Colin Reid
unfortunately SP1 does not help for us.
we just started developing for .NET 2.0 and installed VS 2005 SP1 for each developer right from the beginning. After migration from VS 2003, some user controls started to show the described effect.
so: problem still not solved
Kendal
Ryan F
I have the same issue and SP1 installation doesnt help me either.
I also noticed that some unrecognised characters get inserted in the csproj files (specifically the around the "SubType" text and "Include" text) after I edit them in the IDE. Did anyone run into this issue
DiZASTiX
Hello all,
I think another user has hit on the "answer" to this issue here:
http://www.pcreview.co.uk/forums/showpost.php p=3645831&postcount=5
The IDE seems to get confused if there is more than one class defined in the user control source code file. Moving your extra classes (besides the one inheriting from UserControl) to separate files seems to "solve" the issue. I was having this problem, and a quick test seems to confirm this fix, although I might still be glossing over something else important. This was going to be annoying to me from a source-control perspective, so I'm glad there seems to be an out.
It seems to be a particular problem if the extra classes in your source file inherit from System.Windows.Forms - perhaps this can confuse the IDE as to whether the file should be treated as a user control or designable component.
d kretz
IamHuM
Robert Kozak
XNA Rockstar
Yes, this is exactly our problem too.
We use version control and this effect drives the users insane. And the changing .csproj appears in every Change-Set.
We have several of this cases. I have tried to split files with more than one class, but this is not helping. There are UserControls with more or less simple structure, but they are also changing, but not all.
If anyone has a clue, PLEASE post. (Microsoft Most Valuable guys, where are you when we need you ;-))
K. Ravinder Reddy