Bug 45257 - Asset Catalog not working for non-English format settings
Summary: Asset Catalog not working for non-English format settings
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 4.2.0 (C8)
Hardware: PC Windows
: Normal normal
Target Milestone: 4.3.0 (C9)
Assignee: Emanuel
URL:
: 44020 44400 ()
Depends on:
Blocks:
 
Reported: 2016-10-10 21:21 UTC by Petr Kucera
Modified: 2017-02-02 20:12 UTC (History)
8 users (show)

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


Attachments
German settings (81.70 KB, image/png)
2016-10-10 21:21 UTC, Petr Kucera
Details
English settings (80.18 KB, image/png)
2016-10-10 21:22 UTC, Petr Kucera
Details
Czech settings (39.94 KB, image/png)
2016-10-10 21:22 UTC, Petr Kucera
Details
Correct decimal separator (151.25 KB, image/png)
2016-11-03 08:52 UTC, Petr Kucera
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 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:
VERIFIED FIXED

Description Petr Kucera 2016-10-10 21:21:10 UTC
Created attachment 17968 [details]
German settings

Asset Catalog editor in Visual Studio 2015, specially AppIcons, is not working correctly on Windows with regional settings which is not set to English formatting. It's probably caused by decimal separator set to comma, not dot.

My Asset Catalog is loaded correctly with English settings.

With German settings, the iPad Pro icon is displayed as "Unknown" and "iPad - iOS 7.0 and later" is reset to False.

For some other regional settings, for example Czech, the AppIcons are not loaded at all. If I save the solution, the key XSAppIconAssets is removed from Info.plist.
Comment 1 Petr Kucera 2016-10-10 21:22:12 UTC
Created attachment 17969 [details]
English settings
Comment 2 Petr Kucera 2016-10-10 21:22:42 UTC
Created attachment 17970 [details]
Czech settings
Comment 3 Emanuel 2016-11-01 16:46:38 UTC
*** Bug 44020 has been marked as a duplicate of this bug. ***
Comment 4 Emanuel 2016-11-01 16:47:15 UTC
*** Bug 44400 has been marked as a duplicate of this bug. ***
Comment 5 xamarin-release-manager 2016-11-01 21:32:31 UTC
Fixed in version 4.3.0.213 (master)

Author: Emanuel
Commit: 122a382509f110854dc79cab91c9e6a68a10e0c8 (xamarin/XamarinVS)
Comment 6 Saskia 2016-11-03 07:07:09 UTC
I can't update to version 4.3.0.213.
The latest available version is 4.2.0.719 (in Beta 4.2.1.52).

So, how can I get the solution to this problem?
Comment 7 Petr Kucera 2016-11-03 08:52:09 UTC
Until the fix is published, the solution is changing your Windows configuration and setting decimal separator as dot "." in Number Format. Or simply change all formatting to "English (United States)".

- Close Asset Catalog in VS
- Close Visual Studio
- Change the settings or just decimal separator
- Reboot if necessary (in Windows 10 not required)
- Open Visual Studio, load the project/solution
- Check the Asset Catalog, you may need to set the option "iPad - iOS 7.0 and later" back to True and load missing images.
Comment 8 Petr Kucera 2016-11-03 08:52:54 UTC
Created attachment 18315 [details]
Correct decimal separator
Comment 9 Saurabh 2016-11-10 06:52:20 UTC
I can also reproduce this Issue with XVS 4.2.1.50. This is the screencast for the same: http://www.screencast.com/t/0uudw2lH9

I have checked this Issue with latest Cycle9 build (4.3.0.237). Now I am not seeing image  unknown. This is the screencast for the same: http://www.screencast.com/t/Z59BnKDmF 

Microsoft Visual Studio Enterprise 2015
Version 14.0.25422.01 Update 3
Microsoft .NET Framework
Version 4.6.01055

Visual Basic 2015   00322-90150-00888-AA230
Microsoft Visual Basic 2015

Xamarin   4.3.0.237 (6d4827e)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Inspector Support   0.10.0.874 (76a53d3)
Adds support for inspecting Xamarin and WPF apps.

Xamarin.Android   7.0.99.160 (23ad1d8)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS   10.4.0.1 (7c50b27)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 10 Saskia 2017-02-02 10:41:58 UTC
In which version is this bug supposed to be fixed (and verified)?
I am using the latest versions of xamarin and I still get the warning:
A 83.5x83.5@2x app icon is required for iPad apps targeting iOS 9.0 and later

The proposed 'solution' is a horrible suggestion. 
Changing the number format in windows can have all kinds of effects in other applications.
And I have the dutch settings for a reason....

Kind regards, Saskia
Comment 11 Ben Beckley 2017-02-02 20:12:55 UTC
Hello Saskia,

The fix is available in our beta channel releases; currently that would be XVS 4.3.0.621 (cycle9/7bbc66a).