Bug 6210 - When dragging views from folder to folder, IDE break *.designer.cs files
Summary: When dragging views from folder to folder, IDE break *.designer.cs files
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: Trunk
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2012-07-20 07:52 UTC by Maxim
Modified: 2012-10-31 19:07 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Maxim 2012-07-20 07:52:12 UTC
Create new project, add 2 views with xib and *.designer.cs files into separated folder.
Then drag view .cs file from one folder to other.
Then drag it back.
Try to build project.
You will get error like this: Error CS2001: Source file `/Users/mobile/Projects/msn/msn_client/Moments/Views/Journal/Friends.designer.cs' could not be found (CS2001) (Moments iPhone)

It's something wrong with .csproj file updating. Example:
// Correct one item 
    <Compile Include="Views\Friends\Friends.designer.cs">
// Appears from nothing. Views\Journal is second folder, in which Friends.cs was placed after first drag.
    <Compile Include="Views\Journal\Friends.designer.cs">

I manually remove second Friends.designer.cs and error disappear.
Comment 1 Jeffrey Stedfast 2012-10-31 19:07:27 UTC
fixed in git master