Bug 35223 - Images selected in Xamarin Studio on OSX don't show up in the Visual Studio designer
Summary: Images selected in Xamarin Studio on OSX don't show up in the Visual Studio d...
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS Designer ()
Version: 4.0.0 (C6)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-10-23 16:30 UTC by Matthew Orlando
Modified: 2017-06-20 20:39 UTC (History)
5 users (show)

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

minimal project demonstrating bug 35223 (469.60 KB, application/octet-stream)
2015-10-26 12:13 UTC, Matthew Orlando

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 Matthew Orlando 2015-10-23 16:30:32 UTC
Possibly related to (but wasn't fixed by) Bug 12730, this is happening in both the latest beta and alpha releases.

# Steps to reproduce

Create a storyboard project in Xamarin Studio on OSX
Create a folder under Resources (e.g. Resources/testData)
Add an image to that folder (e.g. "testImage.png")
Add a UIImageView to the storyboard
Set the Image property to "testData/testImage.png"

Save the project, and load it in Visual Studio on Windows

# Expected behavior

Both designer experiences should display the selected image.

# Actual behavior

Visual studio's designer displays the placeholder image as if none were selected. The list of images in the drop-down doesn't even include the item that was selected on the Mac
Comment 1 Alan McGovern 2015-10-26 08:29:54 UTC
Can you attach a copy of the project which replicates this bug? There are one or two things which *could* be causing the problem which are easier to validate when we have a copy of the project.
Comment 2 Matthew Orlando 2015-10-26 12:13:00 UTC
Created attachment 13527 [details]
minimal project demonstrating bug 35223

Sure thing. I've attached the minimal project I created to reproduce this bug.

I also remember something that happened a while ago that may be related. I had another project that started in Visual Studio, with all the resources in the root dir. I moved those resources into a subdirectory, and things seemed to be working fine.

Then I opened the project in Xamarin Studio on my mac, and it added a bunch of duplicate resource entries in the storyboard, with the only difference being the "directory/" added to the beginning of all the files. Since the ones in the directory were correct, I removed the entries that didn't include it. That may be when the images stopped showing up in VS.
Comment 3 Pierce Boggan [MSFT] 2017-06-20 20:39:37 UTC
Thanks for filing this report @Matthew!

I am unable to reproduce this issue using the latest 15.3 builds. To attempt to reproduce this issue, I created an iOS app, added a UIImageView to the storyboard, and referenced an image in a subfolder of the Resources directory:

After saving this project and transferring over to Visual Studio (on Windows), the image located in a nested folder of Resources renders correctly:

Environment Info: https://gist.github.com/pierceboggan/f1ffd9e92b04565eb494d4138e1a034a