Bug 23738 - Visual Studio resets SDK version
Summary: Visual Studio resets SDK version
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 4.0.0 (C6)
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2014-10-10 08:19 UTC by softlion
Modified: 2014-10-17 15:46 UTC (History)
8 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:

Description softlion 2014-10-10 08:19:29 UTC
Since xamarin.ios supports ios 8, when i compile and deploy my UITableView on a physical device in debug mode, the table cells are all superposed.
It works fine on the simulator in debug mode, and also works fine on the same device in release/adhoc mode.

Could it be that checksystemversion(8,0) may return true in that specific case ?
Comment 1 softlion 2014-10-10 08:20:23 UTC
I forgot to write that the device uses ios 7.1
Comment 2 Sebastien Pouliot 2014-10-10 10:57:58 UTC
Calls to checksystemversion(8,0) should not return true on an iOS 7.1 device. We have several test applications that runs fine on older iOS release - so the constraints you have must be the reason.

OTOH the visual* behaviour for Debug and Release should be identical. Does the same issue happens on the simulator (compare debug vs release) ?

Can you attach a small, self contained, test case that reproduce the issue ?

* app size and performance can vary

note: we have seen many examples of constraints that worked fine on iOS7 but broke with iOS8. Sadly that's an Apple (iOS) issue that we can't work around (looks like they
Comment 3 softlion 2014-10-10 11:27:48 UTC
Ok i found the issue. 

In "properties", SDK version has been reset to 7.0.
This breaks UITables on ios8.

Setting it to 8.0 fixed the problem.

Note that the VisualStudio UI resets it to 7.0 each time you open the property panel, even if it is set to 8.0. 
So if you change another setting and don't change the sdk version back to 8.0 you'll get problems as it will be saved as 7.0.

Comment 4 Rolf Bjarne Kvinge [MSFT] 2014-10-13 06:46:50 UTC
=> Visual Studio
Comment 5 Juan Marcelo Tondato 2014-10-17 15:46:29 UTC
Wrench: d9c2479e2aa6a62e80b5a17de70fb72240dc70e7
Commit: 79651f3ac412551735e0be4a0cdd4a9613375e47