Bug 4965 - Grouped files are not updated correctly after move
Summary: Grouped files are not updated correctly after move
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 2.8.8.4
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Alan McGovern
URL:
Depends on:
Blocks:
 
Reported: 2012-05-09 09:42 UTC by uwantfries
Modified: 2012-10-31 19:09 UTC (History)
2 users (show)

Tags:
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:
Status:
RESOLVED FIXED

Description uwantfries 2012-05-09 09:42:50 UTC
Create a new Xib somewhere. Move it to a different folder. UI shows file has moved but the .designer.cs is still referenced in the project somewhere and causes a compiler error.

Close the .sln and re-open it to see the broken reference to the .designer.cs file highlighted in red. You must then delete this broken reference to make the solution build.
Comment 1 Jeffrey Stedfast 2012-05-09 11:12:20 UTC
Was this an old MonoTouch project? Designer source files are no longer linked with the .xib so this isn't an issue anymore (since MT4 or 5)
Comment 2 uwantfries 2012-05-17 07:56:37 UTC
Its a brand new MT project 2.8.8.4 

Create a new MT solution, select tabbed solution.
Create a new directory when the initial solution has loaded.
Grab SecondViewController.cs and SecondViewController.xib and drag and drop them to the new folder. Click build & you get:

Building: TestBugs (Debug|iPhoneSimulator)
Performing main compilation...
/Developer/MonoTouch/usr/bin/smcs /noconfig "/out:/Users/solvdltd/Projects/TestBugs/TestBugs/bin/iPhoneSimulator/Debug/TestBugs.exe" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll" /nologo /warn:4 /debug:full /optimize- /codepage:utf8 "/define:DEBUG"  /t:exe "/Users/solvdltd/Projects/TestBugs/TestBugs/Main.cs" "/Users/solvdltd/Projects/TestBugs/TestBugs/AppDelegate.cs" "/Users/solvdltd/Projects/TestBugs/TestBugs/FirstViewController.cs" "/Users/solvdltd/Projects/TestBugs/TestBugs/FirstViewController.designer.cs" "/Users/solvdltd/Projects/TestBugs/TestBugs/SecondViewController.designer.cs" "/Users/solvdltd/Projects/TestBugs/TestBugs/New Folder/SecondViewController.cs" "/Users/solvdltd/Projects/TestBugs/TestBugs/New Folder/SecondViewController.designer.cs" 
Compilation failed: 1 error(s), 0 warnings

error CS2001: Source file `/Users/solvdltd/Projects/TestBugs/TestBugs/SecondViewController.designer.cs' could not be found


Build complete -- 1 error, 0 warnings




The left hand window shows SecondViewController.designer.cs as being in the new folder but if you close and open the solution you see the broken reference to the .designer.cs
file highlighted in red.
Comment 3 Mikayla Hutchinson [MSFT] 2012-05-17 18:32:13 UTC
This looks like it applies to grouped files in general.
Comment 4 Adam Lonsdale 2012-09-25 16:50:34 UTC
Same in MT 6, MD 3.0.4.7. I created a storyboard and moved all of my view controllers to seperate folders, the designer files are no longer found.
Comment 5 Jeffrey Stedfast 2012-10-31 19:09:52 UTC
fixed in git master