Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
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.
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)
Its a brand new MT project 18.104.22.168
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.
This looks like it applies to grouped files in general.
Same in MT 6, MD 22.214.171.124. I created a storyboard and moved all of my view controllers to seperate folders, the designer files are no longer found.
fixed in git master