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 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.
1. Create a new solution for iOS's Single View App
At this time, line break type of ViewController.designer.cs is LF)
2. Open Main.storyboard and change it to change ViewController.designer.cs
3. See ViewController.designer.cs, its line break type changed to CRLF
I couldn't avoid this behavior even when I changed the code formatting setting to "Unix / Mac" form "Native".
It's very annoying because my .gitconfig has "safecrlf = true".
This is the correct behavior.
The .designer.cs code should be a read-only code, and will be always (re)generated by the designer.
We can't use the user settings, since this could cause two different machines to generate two different .designer.cs files.
Image you have the line end as CR and other person as CRLF, then this would cause the entire .designer.cs to be different.
So the .desiger.cs is always generate equal, regardless the user formatting setting.
So should I add "*.designer.cs" to my .gitignore?
*** Bug 44471 has been marked as a duplicate of this bug. ***
No because you will still need to push the .designer.cs changes :-)
The idea is no matter who changed the storyboard files, the .designer.cs will have the same output.