Bug 32388 - System.Diagnostics.Tracing missing
Summary: System.Diagnostics.Tracing missing
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: XI 8.10
Hardware: PC Windows
: --- normal
Target Milestone: 8.13 (C6 alpha)
Assignee: Rolf Bjarne Kvinge [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2015-07-24 05:53 UTC by softlion
Modified: 2015-07-27 09:26 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:
Status:
RESOLVED FIXED

Description softlion 2015-07-24 05:53:19 UTC
System.Diagnostics.Tracing is available in MonoAndroid10, but is missing from Xamarin.iOS
And the new Microsoft nuget shipping this lib requires nuget 3 which is not available for vs 2013 at this time.

System.Diagnostics.Tracing is required by the TPL DataFlow nuget when the project is run.


To reproduce:
- create an ios project
- add the TPL Dataflow nuget
- in AppDelegate, create a simple dataflow and post a message to it

    var actionBlock = new ActionBlock<int>(n => Debug.WriteLine(n));
    for (var i=0; i<10; i++)
         actionBlock.Post(i);

- run the project on the ios simulator

It will compile ok, but fail with a missingmethodexception when run.
If you manually add System.Diagnostics.Tracing found in the "reference assemblies" folder, it will work ok.
Comment 1 Marek Safar 2015-07-24 12:17:42 UTC
Xamarin.iOS uses same mscorlib API as Xamarin.Android. You are probably running older version of Xamarin.iOS than Xamarin.Android.

Including actual missing type would help too.
Comment 3 Marek Safar 2015-07-27 07:54:37 UTC
System.Diagnostics.Tracing is a facade assembly. I am not sure why registrar needs it when it's not copied.
Comment 4 Rolf Bjarne Kvinge [MSFT] 2015-07-27 09:26:04 UTC
Fixed.

maccore/master: 09fa37726a98bdb94bd1dcfbeaa4578ead0ca25d
maccore/macios-cycle6: ff09300433d68777e6c5144404a2acfb04b063f9