Why UWP Images in Root Rather Than Assets? RRS feed

  • Question

  • User271938 posted

    To use the same local image across iOS, Android and Windows in Xamarin Forms -- AND use the same file name -- you need to follow Xamarin's conventions for where to locate the file. For iOS, the image file goes into the Resources folder. For Android, the image file goes into the Resources/drawable* folder(s). But for UWP, the image goes into the root directory. Why not the Assets directory? This is the more traditional location. What am I missing?

    Friday, January 13, 2017 12:06 AM

All replies

  • User370352 posted

    Can I just ask, where is the root directory? I can't find the answer anywhere and I'm new to this stuff

    Thursday, July 5, 2018 9:37 PM
  • User271938 posted

    The root directory is the UWP project folder within Visual Studio -- at the same level where the Assets folder, App.xaml and the default MainPage.xaml files are located.

    Thursday, July 5, 2018 9:59 PM
  • User25759 posted

    I wrote up a feature request here: https://forums.xamarin.com/discussion/128969/feature-request-default-search-directory-for-uwp-icons-platform-specific#latest

    Thursday, July 5, 2018 10:05 PM