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?

+3
xamarin xamarin.ios


source to share


3 answers


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.

+2


source to share


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
+2


source to share


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

0


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics