Bug 447811

Summary: ProjectTypeGuids are erased from MSBuild files
Product: [Mono] MonoDevelop Reporter: James King <james.king>
Component: projectAssignee: Lluis Sanchez <lluis>
Status: RESOLVED FIXED QA Contact: MD Bugs <monodevelop-bugs>
Severity: Major    
Priority: P5 - None CC: james.king, paul.wetzel
Version: SVN   
Target Milestone: ---   
Hardware: x86-64   
OS: Ubuntu   
Whiteboard:
Found By: Beta-Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Workaround for the issue.

Description James King 2008-11-21 20:16:26 UTC
I have a build of monodevelop that is about a week old. Every once in a while my project stops being an asp.net project <ProjectTypeGuids>{349C5851-65DF-11DA-9384-00065B846F21};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> gets removed from the .csproj file. If I manually add the above tag to my .csproj it will remove it again within a few minutes. 

I created a new project yesterday and put my work back into it. That worked for a little while, but today it happened again.

This is keeping me from being able to run my project or add new web forms.

Thanks,

James
Comment 1 Michael Hutchinson 2008-11-22 01:41:28 UTC
OK, I can reproduce this.
Comment 2 Michael Hutchinson 2008-11-22 02:44:46 UTC
It's not clear to me how the ProjecTypeGuids-handling code is intended to work, or why it erases existing values. Lluis, could you take a look?
Comment 3 Michael Hutchinson 2008-11-22 02:45:48 UTC
Created attachment 254519 [details]
Workaround for the issue.

James: The attached patch contains a workaround for this.
Comment 4 James King 2008-11-24 15:11:26 UTC
Wow! a workaround the same day! Do you sleep Michael? 

It worked great thanks. 

Comment 5 Michael Hutchinson 2008-11-25 01:46:48 UTC
I live on West Coast time despite living on the East Coast ;-)

I've committed the workaround since this is making things difficult for people. I doubt it's possible to auto-fix solutions. I just hope it doesn't affect 1.9.1...
Comment 6 Lluis Sanchez 2008-12-02 17:15:40 UTC
Fixed in SVN (r120502).
Comment 7 Michael Hutchinson 2009-02-06 04:21:07 UTC
*** Bug 473151 has been marked as a duplicate of this bug. ***