[msbuild] Include the CFBundleVersion in the archive manifest (#839)

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=44348
This commit is contained in:
Jeffrey Stedfast 2016-09-15 14:50:02 -04:00 коммит произвёл GitHub
Родитель 8be3807162
Коммит f9e2e18794
1 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -227,10 +227,12 @@ namespace Xamarin.iOS.Tasks
var props = new PDictionary ();
props.Add ("ApplicationPath", new PString (string.Format ("Applications/{0}", Path.GetFileName (AppBundleDir.ItemSpec))));
props.Add ("CFBundleIdentifier", new PString (plist.GetCFBundleIdentifier ()));
if (plist.GetCFBundleShortVersionString () != null)
props.Add ("CFBundleShortVersionString", new PString (plist.GetCFBundleShortVersionString ()));
else if (plist.GetCFBundleVersion () != null)
props.Add ("CFBundleShortVersionString", new PString (plist.GetCFBundleVersion ()));
var version = plist.GetCFBundleShortVersionString ();
var build = plist.GetCFBundleVersion ();
props.Add ("CFBundleShortVersionString", new PString (version ?? (build ?? "1.0")));
props.Add ("CFBundleVersion", new PString (build ?? "1.0"));
var iconFiles = plist.GetCFBundleIconFiles ();
var iconDict = plist.GetCFBundleIcons ();