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 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.
Created attachment 14135 [details]
# Steps to reproduce
Unzip the attached solution and try to build the UnitTestApp1 project.
# Expected behavior
The test project should build and the referenced project's image should be in the */Images/CautionBanner.jpg
# Actual behavior
The test project doesn't build and in the Debug folder the image's name is "Images\CautionBanner.jpg"
# Supplemental info (logs, images, videos)
The error is "System.IO.FileNotFoundException: ~/Library/Caches/Xamarin/mtbs/builds/App1/a8627a4ae84aecf2f4a4c9c034d7255c/obj/iPhoneSimulator/Debug/Images/CautionBanner.jpg does not exist
File name: '~/Library/Caches/Xamarin/mtbs/builds/App1/a8627a4ae84aecf2f4a4c9c034d7255c/obj/iPhoneSimulator/Debug/Images/CautionBanner.jpg'
at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, Boolean overwrite) <0x19ff7f0 + 0x00333> in <filename unknown>:0
at Xamarin.MacDev.Tasks.SmartCopyTaskBase.CopyFile (System.String source, System.String target, System.String targetItemSpec) <0x38dea60 + 0x000c7> in <filename unknown>:0
at Xamarin.MacDev.Tasks.SmartCopyTaskBase.Execute () <0x38de348 + 0x00227> in <filename unknown>:0"
# Test environment (full version information)
Microsoft Visual Studio Professional 2015
Version 14.0.24720.00 Update 1
Microsoft .NET Framework
Installed Version: Professional
Xamarin 220.127.116.117 (deffc90)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin.Android 18.104.22.168 (3efa14c)
Visual Studio plugin to enable development for Xamarin.Android.
Xamarin.iOS 22.214.171.124 (3c0ec35)
Visual Studio extension to enable development for Xamarin.iOS.
Any update on this? We can't upgrade to Xamarin 4 without it.
When can we expect a fix or workaround?
## Verification status: verified fixed on Cycle 6 – Service Release 1
I tested the "Sample Solution" from Comment 0 using the current Stable versions in both the "Debug|iPhoneSimulator" and "Debug|iPhone" configurations. The build now completes without error, and the `CautionBanner.jpg` file is present at the correct `obj/iPhoneSimulator/Debug/Images/CautionBanner.jpg` location.
GOOD: XamarinVS 126.96.36.199 (dcea9c1) + Xamarin.iOS 188.8.131.52 (962a050)
BAD: XamarinVS 184.108.40.2067 (1390b70) + Xamarin.iOS 220.127.116.11 (7322991)
BAD: XamarinVS 18.104.22.1689 (f860fe4) + Xamarin.iOS 22.214.171.124 (3c0ec35)
*** This bug has been marked as a duplicate of bug 36407 ***