Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Why modifying a XML or any other resource file force Xamarin to rebuild the entire project ?

$
0
0

Hello !

This is getting on my nerve.

I am not using a very fast PC for work, but whenever I have to modify an Android resource (be it a simple dimens.xml or activity xaml file), Xamarin Studio, upon saving the modifications, starts building for a long time (up to 2 minutes).

Morever, and this is very disturbing: when deploying the application after I modified the resources, Xamarin Studio completely removes the application in order to install it over, hence deleting any stuff inside the application directory (data, database, prefs etc.).
This is really a pain in you-know-where.

I am working on my layouts and a single modification to be saved uses my CPU to 100% (with aapt.exe) for a LONG time...

Why, just why ?

When I modify some code inside the Android project, it compiles very very fast and deploy in a matter of seconds. That's amazing.
When I modify some code inside a portable library referenced by the Android project, then it's the same problem as above all over again.

So big cons :

  • way too long buildind time and high CPU usage (computer almost unusable during build time) ;
  • application is entirely deleted from the targeted device, including the internal data ;

My computer : Asus Zenbook with a Dual Core i7 3517U CPU clocked at 3GHz
http://ark.intel.com/products/65714/Intel-Core-i7-3517U-Processor-4M-Cache-up-to-3_00-GHz

Thanks for the help !

PS: Using Android Studio is a bliss whenever it comes to designing layouts.
So for now I do all my designs with it.
But back when I used Java & Android Studio, adding XML or any resource was fast, flexible and efficient. With Xamarin Studio, my productivity is very low.


Viewing all articles
Browse latest Browse all 204402

Trending Articles