Bug 58239 - Xamarin.iOS not able to change build version.
Summary: Xamarin.iOS not able to change build version.
Status: RESOLVED ANSWERED
Alias: None
Product: iOS
Classification: Xamarin
Component: MSBuild ()
Version: XI 10.8 (d15-1)
Hardware: PC Mac OS
: --- normal
Target Milestone: Future Cycle (TBD)
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2017-07-19 10:56 UTC by Raj Gogri
Modified: 2017-07-31 19:24 UTC (History)
4 users (show)

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


Attachments
VS Mac Build log. (3.96 MB, text/rtf)
2017-07-20 12:48 UTC, Raj Gogri
Details
VS Mac Version info (2.13 KB, text/rtf)
2017-07-20 12:49 UTC, Raj Gogri
Details


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 or GitHub 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:
Status:
RESOLVED ANSWERED

Description Raj Gogri 2017-07-19 10:56:17 UTC
My Current Xamarin.iOS application is having Version 2.6 and Build 1.0, but when I try to change the Build to 1.01 it again sets itself back to 1.0. I have also checked .csproj of the iOS project. Get version form Parent Solution is set to true which looks fine, but when I try to create an ipa build for release version it does not catch my applied build version. Instead Xamarin replaces build version with default 1.0 , Any suggestions ?
Comment 1 Alex Soto [MSFT] 2017-07-19 14:01:04 UTC
Please include your full build logs, crash reports (if any), test case (to reproduce) and all version information.

To get full build logs just set the log verbosity to diagnostic at the following locations:
- On Visual Studio for Mac: Preferences > Projects > Build
- On Visual Studio for Windows: Tools > Options > Projects and Solutions > Build and Run

On Visual Studio Windows you also want to add `-v -v -v -v` to the mtouch additional arguments by right-clicking the project in the solution explorer and selecting `Properties`.
Note: this is done automatically on Visual Studio for Mac when the log verbosity is set to diagnostic.

Easiest way to get exact version information:
- On Visual Studio for Mac: "Visual Studio" menu, "About Visual Studio" item, "Show Details" button.
- On Visual Studio for Windows: "Help menu", "About Microsoft Visual Studio" item.
Then copy/paste the version information (you can use the "Copy Information" button).
Comment 2 Raj Gogri 2017-07-20 12:48:27 UTC
Created attachment 23692 [details]
VS Mac Build log.

Please find attached build log from VS MAC
Comment 3 Raj Gogri 2017-07-20 12:49:29 UTC
Created attachment 23693 [details]
VS Mac Version info

Please find attached VS for Mac version info.
Comment 4 Raj Gogri 2017-07-20 12:51:20 UTC
Please find attachments and let me know your suggestions. Thanks !
Comment 5 Sebastien Pouliot 2017-07-24 13:25:30 UTC
@Jeff can you check this ? not sure if it's a bug (I don't recall all the rules) but the UI should help if it's not possible to set a value.
Comment 6 Jeffrey Stedfast 2017-07-31 19:24:16 UTC
You have to set the Version and Build in the Info.plist, it does not take the values from the Parent Solution.

iOS apps don't work like normal .NET apps in that regard and it would be too confusing to make it work that way because we couldn't possibly know which values to use - the ones in the Info.plist or the ones in the Solution Options?