How do you forcibly rebuild * .designer.cs files in Xamarin build command line?
I am creating an iOS Xamarin app from the command line. The * designer.cs files have been removed.
What command should I execute to restore * .designer.cs files?
This section has 3 questions:
-
If you want to build from the command line, it is explained in this section: How to build the command line of a Xamarin.iOS project?
-
To ignore * .designer.cs you can add a template to your .git file called git ignore: http://git-scm.com/docs/gitignore
-
To recover the designer files, you can simply rebuild your solution.
Found in Xamarin Studio 6
Based on this forum thread, the rather awkward sequence that worked for me was
- rename the ViewController given in the storyboard
- save and close solution
- remove directories
bin
andobj
- rebuild
For Xamarin Studio 5.8, if you edit the file that started the .cs designer, save again and rebuild the project, it will regenerate the .cs designer