Microsoft
Visual Studio
Visual Studio
  • Home
    • Problems
    • Suggestions
  • Downloads
    • Visual Studio IDE
    • Visual Studio Code
    • Azure DevOps
    • Team Foundation Server
    • Accounts and Subscriptions
  • Subscriber Access
      • Microsoft 365
      • Azure
      • Office 365
      • Dynamics 365
      • SQL
      • Windows 10
      • Windows Server
      • Enterprise Mobility + Security
      • Power BI
      • Teams
      • Visual Studio
      • Surface for Business
      • AI
      • Internet of Things
      • Azure Cognitive Services
      • Quantum
      • Research
      • Docs
      • TechNet
      • Developer Network
      • Windows Dev Center
      • Windows IT Pro Center
      • FastTrack
      • Partner Network
      • Solution Providers
      • Partner Center
      • Cloud Hosting
      • Education
      • Financial services
      • Government
      • Health
      • Manufacturing & resources
      • Retail
      • Security
      • Licensing
      • AppSource
      • Azure Marketplace
      • Events
    • View all
    Sign in

    Developer Community

    Get help from our community supported forum
    • Home /
    • Visual Studio /
    Searched and didn’t find your feedback?
    • Visual Studio
    • Visual Studio for Mac
    • .NET
    • C++
    • Azure DevOps
    • TFS
    or
    • Visual Studio
    • Visual Studio for Mac
    • .NET
    • C++
    • Azure DevOps
    • TFS
    Visual Studio
    Visual Studio for Mac
    .NET
    C++
    Azure DevOps
    TFS
    21

    Xamarin.iOS can't select image asset for Image View

    visual studio 2017 version 15.8windows 10.0Fixed In: Visual Studio 2017 version 15.9.4

    avatar image oleksandr.tokmakov reported Aug 23, 2018 at 09:22 AM

    thub.nodes.view.add-new-comment
    Add comment Show 20

    Add Comment

    10 |10000 characters needed characters left characters exceeded
    avatar image oleksandr.tokmakov · Aug 23, 2018 at 01:56 PM 0
    Share
    avatar image Dries Hoebeke · Aug 27, 2018 at 01:13 PM 0
    Share
    avatar image David Ortinau [MSFT] · Aug 27, 2018 at 04:00 PM 0
    Share
    avatar image wutever0 · Aug 27, 2018 at 05:31 PM 0
    Share
    avatar image Lorenzo Melato · Aug 29, 2018 at 01:03 PM 1
    Share
    avatar image Andrey Shevchenko · Sep 10, 2018 at 05:05 AM 0
    Share
    avatar image W.I.N.C.O. · Sep 18, 2018 at 11:11 AM 0
    Share
    avatar image paolo.levati · Sep 18, 2018 at 12:24 PM 0
    Share
    avatar image Brian Limkemann · Sep 18, 2018 at 12:50 PM 0
    Share
    avatar image Peter Brachwitz · Sep 18, 2018 at 01:17 PM 1
    Share
    Show more comments

    Solutions

    · Add your solution
    4

    Solution by avatar image Jaden Rogers · Sep 20, 2018 at 11:23 PM

    Open the file in a text editor (VSCode)

    Add a resources element with a image element as a child. The name attribute must refer to a file already in your resources.

    Update the image view setting the "image" attribute on the imageview to the same name.

    Still doesn't preview but it works when run.

    thub.nodes.view.add-new-comment
    Add comment Show 5 · Share

    Add Comment

    10 |10000 characters needed characters left characters exceeded
    avatar image paolo.levati · Sep 21, 2018 at 12:41 PM 0
    Share
    avatar image Oleksandr Tokmakov · Sep 21, 2018 at 01:19 PM 0
    Share
    avatar image aq-aulmer · Sep 27, 2018 at 06:06 PM 0
    Share
    avatar image Ed Lomonaco · Nov 26, 2018 at 08:28 PM 0
    Share
    avatar image Cemsit Legend · Dec 06, 2018 at 05:36 PM 0
    Share
    3

    Solution by avatar image Andrey Shevchenko · Sep 20, 2018 at 03:29 AM

    Experimentally, in my case, I found that the property image does not work if I add a project like net.standard to the solution.

    If uncheck the project reference in references, and save solution, open storyboard designer then image property will work.

    When you will end work with image on storyboard and save it you can return reference to net.standard project.

    thub.nodes.view.add-new-comment
    Add comment Show 5 · Share

    Add Comment

    10 |10000 characters needed characters left characters exceeded
    avatar image Dennis Ping · Sep 20, 2018 at 02:07 PM 0
    Share
    avatar image Daniel Gonzalez · Sep 20, 2018 at 09:45 PM 1
    Share
    avatar image Andrey Shevchenko · Sep 21, 2018 at 12:49 AM 0
    Share
    avatar image Andrey Shevchenko · Sep 21, 2018 at 01:02 AM 0
    Share
    avatar image Christian Morin · Oct 13, 2018 at 12:28 AM 1
    Share
    2

    Solution by avatar image Liam · Nov 20, 2018 at 01:37 PM

    Still an issue in 15.9.2

    thub.nodes.view.add-new-comment
    Add comment · Share

    Add Comment

    10 |10000 characters needed characters left characters exceeded
    1

    Solution by avatar image mfebres · Dec 04, 2018 at 06:56 PM

    Problem still present in 15.9.3. Solution for me was to include the image by hand in the storyboard file.

    thub.nodes.view.add-new-comment
    Add comment · Share

    Add Comment

    10 |10000 characters needed characters left characters exceeded
    1

    Solution by avatar image Ken Ross · Dec 11, 2018 at 07:04 PM

    Just want to build on the comment made by @Christian Moen; the simplest work-around path I've tried (and works cleanly) is:

    1. Build and run your app [this is just to confirm everything is working and to make sure your .Net Standard project is built
    2. Right-click on your .Net Standard project and select "Unload Project"
    3. Double-click on your Storyboard file to open the designer
    4. You'll find that the Asset (image) selectors are working correctly; make your changes to the storyboard
    5. Because of step 1, you can still do "F5" test build/run cycles to make sure your storyboard is behaving
    6. When you're done with your storyboard edits, close it
    7. Right-click on the .Net Standard project and select "Reload Project"

    I've broken it out in extreme detail but it comes down to 1) Unload the .Net Standard Project, 2) Load and Edit your Storyboard, 3) Reload the .Net Standard project when done with the Storyboard. Not ideal, but an easy enough work-around to manage.

    thub.nodes.view.add-new-comment
    Add comment · Share

    Add Comment

    10 |10000 characters needed characters left characters exceeded
    1

    Solution by avatar image Benoist LUGNIER · Oct 14, 2018 at 02:37 PM

    Hi,

    The easiest solution for me was to remove the reference of the .net standard library in the iOS project.
    I close and reopen the storyboard. I can select the image and everything is fine.

    Don't forger to re-register the reference to the .net standard library.

    Hope this will help

    Benoist

    thub.nodes.view.add-new-comment
    Add comment · Share

    Add Comment

    10 |10000 characters needed characters left characters exceeded
    1

    Solution by avatar image wutever0 · Oct 18, 2018 at 04:57 PM

    @David Ortinau [MSFT] Is anyone from Microsoft still looking into this? We haven't had any feedback about this for over a month and half

    thub.nodes.view.add-new-comment
    Add comment · Share

    Add Comment

    10 |10000 characters needed characters left characters exceeded
    0

    Solution by avatar image Dr. Moltu · Oct 25, 2018 at 07:40 PM

    Same problem here!!!!!!!!!!!!!!!!!!! VS2017 15.8.8 Please fix this in 15.8.9

    thub.nodes.view.add-new-comment
    Add comment · Share

    Add Comment

    10 |10000 characters needed characters left characters exceeded
    0

    Solution by avatar image Alex Corrado [MSFT] · Dec 11, 2018 at 10:06 PM

    We have fixed this issue and it's available in Visual Studio 2017 15.9.4. See the release notes here: https://docs.microsoft.com/en-us/visualstudio/releasenotes/vs2017-relnotes#15.9.4


    I'd also like to personally thank you all for your patience on this issue, and especially those who took the time to share workarounds. Thank you!


    thub.nodes.view.add-new-comment
    Add comment Show 4 · Share

    Add Comment

    10 |10000 characters needed characters left characters exceeded
    avatar image Daniel Pereira · Dec 11, 2018 at 11:07 PM 0
    Share
    version.png (34.1 kB)
    vs.png (140.1 kB)
    avatar image Alex Corrado [MSFT] Daniel Pereira · Dec 12, 2018 at 09:01 PM 0
    Share
    avatar image Daniel Pereira Alex Corrado [MSFT] · Dec 13, 2018 at 03:05 PM 0
    Share
    avatar image Ken Ross · Dec 12, 2018 at 12:29 AM 0
    Share
    0

    Solution by avatar image Ed Lomonaco · Nov 26, 2018 at 08:25 PM

    This is a problem for me, using 15.9.2

    seems to work just fine if I do it on a Mac, but that's not going to fly as my team is all using Windows, hope to see Microsoft come up with a solution.

    thub.nodes.view.add-new-comment
    Add comment Show 2 · Share

    Add Comment

    10 |10000 characters needed characters left characters exceeded
    avatar image Ken Ross · Dec 12, 2018 at 12:31 AM 1
    Share
    avatar image Ed Lomonaco Ken Ross · Dec 12, 2018 at 03:02 PM 0
    Share
    Follow

    109 People are following this

    Related Problems

    Asset Catalog empty
    2 Solution

    Image not populating on iOS splashscreen in VS 15.8.6
    3 Solution

    Visual Studio v15.8.3 fails to create new .NET Standard project
    1 Solution

    visualstudio-15.8.3 no longer expands metadata in ItemDefinitionGroup for project-defined items during GUI builds (worked in visualstudio-15.8.2)
    1 Solution

    Debugger keeps running slower and slower
    0 Solution

    remote file copy with relative paths
    0 Solution

    Visual Studio restart when update table in sql database
    0 Solution

    SSIS project file corrupted after upgrade to SQL Server 2017
    0 Solution

    Issue with object initializers and csharp_new_line_before_open_brace in editorconfig
    1 Solution

    Strongly typed dataset (.xsd) error VS Community Edition 15.8.1
    0 Solution

    What's new

    • NEW Surface Pro 6
    • NEW Surface Laptop 2
    • NEW Surface Go
    • Xbox One X
    • Xbox One S
    • VR & mixed reality
    • Windows 10 apps
    • Office apps

    Store & Support

    • Account profile
    • Download Center
    • Sales & support
    • Returns
    • Order tracking
    • Store locations
    • Support
    • Buy online, pick up in store

    Education

    • Microsoft in education
    • Office for students
    • Office 365 for schools
    • Deals for students & parents
    • Microsoft Azure in education

    Enterprise

    • Microsoft Azure
    • Enterprise
    • Data platform
    • Find a solution provider
    • Microsoft partner resources
    • Microsoft AppSource
    • Manufacturing & resources
    • Financial services

    Developer

    • Microsoft Visual Studio
    • Windows Dev Center
    • Developer Network
    • TechNet
    • Microsoft developer program
    • Channel 9
    • Office Dev Center

    Company

    • Careers
    • About Microsoft
    • Company news
    • Privacy at Microsoft
    • Investors
    • Diversity and inclusion
    • Accessibility
    • Security
    English (United States)
    • Sitemap
    • Contact us
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2018
    • Anonymous
    • Sign in
    • Spaces
    • Visual Studio
    • Visual Studio for Mac
    • .NET
    • C++
    • Azure DevOps
    • TFS
    • Explore
    • Topics
    • Problems
    • Problems
    • Problems
    • Features
    • Features
    • Features
    • Users
    • Badges