Forum Visual Studio


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Bug in Assets Catalog with non English VS


using Xamarin.VS on a French Visual Studio.
When opening my solution I have this message in the console : "Could not load asset catalogs"
In the logs there is this excpetion :

Xamarin.VisualStudio.IOS.AssetCatalog.AssetCatalogFlavoredProject Error: 0 : [2016-03-25 15:38:55.0121] Could not load asset catalogs
System.FormatException: Le format de la chaîne d'entrée est incorrect. <= Input string is not in correct format
à System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
à System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt)
à System.Convert.ToDecimal(String value)
à Xamarin.VisualStudio.IOS.AssetCatalog.ImageBase.set_Size(String value)
à Xamarin.VisualStudio.IOS.AssetCatalog.AssetCatalogManager.LoadCatalogs()
à Xamarin.VisualStudio.IOS.AssetCatalog.AssetCatalogFlavoredProject.b__8_0()

Looks like you triying to load a decimal from string without taking care of the environnement CultureInfo......
For a double in english you'd write 5.2 in French it is 5,2

Sign In or Register to comment.