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 4728 [details]
Using the ".NET 4.5 + .NET for Windows Store + Xamarin" PCL profile (v4.5\Profile\Profile 7) with Tasks causes the following error when attempting to run an iOS project that references the PCL project in Visual Studio 2012:
C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.MonoTouch.Common.targets(110,3): error : Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'System.Runtime, Version=184.108.40.206, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Perhaps it doesn't exist in the MonoTouch profile?
Steps to reproduce:
1. Open attached project in VS 2012.
2. Attempt to run the iOS project.
The "FileNotFoundException" error message appears in the "Debug" Output, and the application fails to run.
- The example PCL project works fine with Xamarin.Android projects and Windows Console projects.
- Switching the PCL profile to ".NET 4.5 + Silverlight 5 + .NET for Windows Store" is a work-around when using the older `Task.Factory.StartNew()` method, but will not work with `Task.Run()`.
- The project runs fine using Xamarin Studio on Mac (no PCL profiles added).
VS 2012 11.0.50727.1 RTMREL
Created attachment 4729 [details]
Full Debug log
*** This bug has been marked as a duplicate of bug 13322 ***
Just to be thorough, the test case for bug 13322 started on the emulator for me without complaint on Xamarin.iOS 1.4.2.
Whoops. That is to say, the test case for bug 13322 *did* start on the emulator, but the test case attached to this case *did not* start. Interestingly, the error only appears during the "Remote Build" phase before running (like the "other" problem the user saw on bug 13481). "Build -> Build Solution" works just fine.
Probably all redundant information anyway :)
Reopening after re-checking the test case with the recent builds. It still fails with the FileNotFoundException for "System.Runtime, Version=220.127.116.11". I think my initial description sounded too similar to bug 13322 and bug 13481. It seems to be a different problem after all.
I'll have a look at this asap.
This should work just fine as of the latest 1.8 builds. I am able to build PCL libraries exactly as expected now. Please re-open if there are cases where it does not work.
Any ETA on when the 1.8 builds are available in alpha channel?
I can't give you an exact answer, but I think it should be available within a week or two. Keep an eye out on the updater channels and you'll see it when it is released!