Bug 30600 - Asset catalogs/xcassets doesn't work since 3.11
Summary: Asset catalogs/xcassets doesn't work since 3.11
Status: RESOLVED DUPLICATE of bug 36817
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 3.11 (C5)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-05-29 14:23 UTC by jm.alfonsi
Modified: 2016-03-10 19:08 UTC (History)
7 users (show)

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 jm.alfonsi 2015-05-29 14:23:22 UTC
All my images are embedded as asset catalog in xcassets folder:


In VS, access to this through user interface is not supported yet, so I add them manually to my CS proj file:

    <ImageAsset Include="Resources\ProjectName.xcassets\SectionPhone.imageset\Contents.json">
    <ImageAsset Include="Resources\ProjectName.xcassets\SectionPhone.imageset\Phone%402x.png">
    <ImageAsset Include="Resources\ProjectName.xcassets\SectionPhone.imageset\Phone%403x.png">

Before 3.11, this was well compile and ios did find them at runtime.
Since 3.11, nothing is found and I have a exception at runtime.

The AppIcons and LaunchImages, accessible from user interface in VS, are not working either.
Comment 1 Felix Rudat 2015-07-29 10:50:10 UTC
I can confirm this, I neither see the "virtual" Asset Catalogs folder, nor am I able to see asset catalogs in any other way through the project browser, except showing hidden files and browse to the Resources directory. 

However I can add new asset catalogs and therefore see the asset catalog form. The catalog itself is indeed created but not available during app runtime.

Environment information:

(Well knowing that this is some bleeding edge software, I also tested it with an colleague on Win7 using VS2013, no ReSharper but the same version of the Xamarin toolchain. The results are exactly the same.)

Microsoft Visual Studio Enterprise 2015
Version 14.0.23107.0 D14REL
Microsoft .NET Framework
Version 4.6.00079

Installierte Version: Enterprise

Architecture and Modeling Tools   00322-80000-00000-AA238
Microsoft Architecture and Modeling Tools
UML® und Unified Modeling Language™ sind Marken oder eingetragene Marken der Object Management Group, Inc. in den Vereinigten Staaten und anderen Ländern.

Visual Basic 2015   00322-80000-00000-AA238
Microsoft Visual Basic 2015

Visual C# 2015   00322-80000-00000-AA238
Microsoft Visual C# 2015

Visual C++ 2015   00322-80000-00000-AA238
Microsoft Visual C++ 2015

Allgemeine Azure-Tools   1.5
Bietet allgemeine Dienste für die Verwendung durch Azure Mobile Services und Microsoft Azure-Tools.

Application Insights Tools für Visual Studio Package   1.0
Application Insights Tools für Visual Studio

GitHub.VisualStudio   1.0
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.

Indent Guides   14
Indent Guides

Adds visual guides at each indentation level.

JetBrains ReSharper Ultimate 2015.1.3   Build 102.0.20150724.141603
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2015 JetBrains, Inc.

Komponententest generieren   1.0
Generiert Komponententestcode für Methoden in zu testenden Klassen.

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

Microsoft Code Digger   0.9
Microsoft Code Digger

Microsoft.Pex.VisualStudio   1.0

NuGet-Paket-Manager   3.0.0
NuGet-Paket-Manager in Visual Studio. Weitere Informationen zu NuGet finden Sie unter "http://docs.nuget.org/".

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio-Erweiterung zur Visualisierung aggregierter Zusammenfassungen vom PreEmptive Analytics-Produkt.

VSColorOutput   1.4.5
Color output for build and debug windows - http://blueonionsoftware.com/vscoloroutput.aspx

Xamarin   3.11.666.0 (ebae43a)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android (5f55a9ef61c11b6ce0890bc91e4c71b1b92be214)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS (67b390d0d1bd741582cf7b7fd3ffea08583a3f83)
Visual Studio extension to enable development for Xamarin.iOS.

Xamarin.iOS Unified Migration   1.0
Automated migration for Xamarin iOS Classic projects to Unified

Xamarin.TestCloud.Integration   1.0
Early preview of Xamarin Test Cloud integration
Comment 2 softlion 2015-08-27 04:23:15 UTC

I deleted all the assets from VS, recreated the catalog from VS, and it still does not work. Iphone 6 images are missing in the ipa.

If i delete all assets/catalogs in VS, the switch to Xamarin Studio MAc, then recreate the catalogs, it compiles ok.

Still happen in
Comment 3 Felix 2016-02-12 17:19:24 UTC
Any update on this?
Comment 4 Brendan Zagaeski (Xamarin Team, assistant) 2016-03-10 19:08:31 UTC
Thanks for the reports. I believe there are 2 primary issues currently discussed here:

1. Bug 36817 - The specific workflow of moving a project back and forth between Xamarin Studio and Visual Studio is currently _broken_ due to Bug 36817. Visual Studio incorrectly uses `/` path separators instead of `\` path separators for `<ImageAsset>` elements. Xamarin Studio correctly uses `\` path separators. Possible workarounds: create your asset catalogs directly in Visual Studio, or manually switch the direction of the path separators when moving between Xamarin Studio and Visual Studio.

2. Bug 38427 - The Asset Catalog entry is not displayed in the Solution Explorer when the Visual Studio UI is set to a language other than English

(See also https://forums.xamarin.com/discussion/comment/184585/#Comment_184585 for a summary of a few other related bugs.)

I will now mark this bug as a duplicate of Bug 36817 for tidiness.

*** This bug has been marked as a duplicate of bug 36817 ***