Bug 12730 - Images are not loaded when the application is compiled in Visual Studio, but successfully loaded when the application is compiled in Xamarin Studio.
Summary: Images are not loaded when the application is compiled in Visual Studio, but ...
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 1.1.x
Hardware: PC Windows
: High major
Target Milestone: ---
Assignee: Vinicius Jarina
Depends on:
Reported: 2013-06-18 06:45 UTC by Andrey
Modified: 2013-06-25 15:39 UTC (History)
5 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 Andrey 2013-06-18 06:45:09 UTC
My current versions:

Xamarin.iOS - (Business)

Xamarin.iOS for Visual studio - 1.1.200

Steps to reproduce:

1) Create new storyboard application for iphone.

2) Add new folder to project with name MainImages.

3) Add testImage.png to MainImages folder. Change its build action to BundleResource.

4) Open project file and change  <IPhoneResourcePrefix>Resources;MainImages</IPhoneResourcePrefix>

5) Open storyboard in xcode and add new Image to Screen. Set its image property to testImage.png.

If I compile this application in xamarin on Mac, the image is loaded and displayed on the screen.

If I compile this application in Visual Studio on PC (and use remote debugging) in output I see message: "Could not load the "testImage.png" image referenced from a nib in the bundle with identifier """ and the image is not displayed.

In the previous version of Xamarin this problem does not arise and images are displayed in both cases.
Comment 1 Marek Habersack 2013-06-18 06:52:01 UTC
Hi Andrey,

I believe this is fixed in the upcoming 1.2.x release, Vinicius can you confirm that?
Comment 2 Andrey 2013-06-18 15:50:57 UTC
I downloaded the beta-version of xamarin.iOS for VS (1.2) and this bug is doesn't fixed there. In the technical support told me that this bug will be fixed in the release version. Is there a quick workaround until the release?
Comment 3 Vinicius Jarina 2013-06-24 17:45:05 UTC
Thank you for the Report Andrey.

We are not handling the IPhoneResourcePrefix properly on VS.

We will fix this.