Bug 29131 - [props] Changing Project Properties modifies the info.plist file and removes CFBundleIconFiles values
Summary: [props] Changing Project Properties modifies the info.plist file and removes ...
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 3.9
Hardware: PC Mac OS
: Normal normal
Target Milestone: 15.2
Assignee: Emanuel
Depends on:
Reported: 2015-04-15 15:46 UTC by John Miller [MSFT]
Modified: 2017-04-14 12:51 UTC (History)
8 users (show)

Tags: props
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 John Miller [MSFT] 2015-04-15 15:46:32 UTC

   Modifying project properties on an iOS project removes CFBundleIconFiles values from the info.plist.

   This is similar to #23179 except that it's removing the values of CFBundleIconFiles, not the key itself.

**Steps to Reproduce:**

   1. Open Visual Studio
   2. File - New Project - iOS Single View

   This would be a good time to take note of what the info.plist contains so you can compare after it changes.
   3. Open the Project - Properties of the iOS App project
   4. Go to the iOS Application tab
   5. Change the Version value to something e.g. 3
   6. Save. 
   7. The info.plist will have some values deleted now in the CFBundleIconFiles key

**Actual Results:**

   Some values are deleted in the info.plist: http://screencast.com/t/2jlMgQimlUP5

**Expected Results:**

   Nothing should be deleted when modifying the project properties. 

**Build Date & Platform:**

   XVS 3.9.547
Comment 1 John Miller [MSFT] 2015-04-15 16:30:21 UTC
The Storyboard key is also deleted. See the screencast in the description.
Comment 2 mag@xamarin.com 2016-05-18 15:14:18 UTC
Some changes has been made on .plist save logic to maintain custom values and values that doesn't appear in the Info.plist UI on VS.

Please verify that these changes also fix this issue.

master branch:
Fix commit: 2ffdd73fa813d7825de10d6a72a28631292fecc9
Merge commit: ebb6bd52abd85f680c780326c0cfbdb7d6369433
Comment 5 Jose Gallardo 2017-04-10 13:02:10 UTC
Fixed on Xamarin for VS
Commit: bce212f67ad2dcbb75084b1579f411e0f10f48a3
Comment 6 Saurabh Paunikar 2017-04-14 12:51:15 UTC
Seen property page UI is changed and no option to change version is available,thus this issue cannot be reproduced.Marking this as verified fixed

Build Info: https://gist.github.com/saurabh-paunikar/d8096b6db29ae0e40a76ca22508f287b