Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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 or GitHub 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.
When creating a folder, e.g. "images", in the project explorer to organize images, these are deployed in the app bunder under a respective "images" folder. This causes UIImage.FromBundle to fail.
Please add a option (per folder) to allow these to be deployed to an alternate folder of the bundle, including relative paths for maximum flexibility. I'd be happy to help change this, but I suspect it's in the monotouch portion of the code base.
The same problem exists for xibs too – not just images. Be nice to organize them in a 'virtual' folder, so they don't clutter the project.
This is implemented (in a way) in MonoDevelop 3.0.4 which will be out later this week.
If you create a special "Resources" folder, anything in that folder is deployed to the bundle root (or you can override the Bundle ID attribute to specify where it should go).
If I create the Resources folder and build, I receive an error for each file in this folder:
The folder name 'Resources' is reserved and canot be used for Content files
I am running MD 126.96.36.199
Could you check if the files are marked with a Build Action set to "BundleResource"? If they aren't, try changing them to "BundleResource" and see if that fixes it.
Excellent – that solved it!