Forum Workbooks & Inspector


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Why is #r "Mono.CSharp" added to my Workbook?

JasonSteeleJasonSteele GBBeta ✭✭
edited July 2017 in Workbooks & Inspector

I'm just taking my first look at Workbooks and wanted to create one to learn about Cosmos Graph API.

When I add the package for Microsoft.Azure.Graphs (preview) the following two lines were added:

#r "Microsoft.Azure.Graphs"
#r "Mono.CSharp"

Why is the second line required? Why this need for a dependency on Mono?




  • SandyArmstrongSandyArmstrong USXamarin Team, Insider Xamurai

    Hi Jason,

    The Mono.CSharp reference is added because it is part of the Microsoft.Azure.Graphs NuGet package. If you download the package and unzip it, you will see that the two assemblies are both in the lib\net451 directory.

    You should see the same behavior if you add a reference to this package in Visual Studio.

    Regardless, this isn't really a dependency on Mono. The package you are using just bundles an assembly that comes from Mono.

  • JasonBSteeleJasonBSteele USUniversity ✭✭

    Thanks Sandy - obvious really!

    I assumed that the Workbook was adding this in unnecessarily, but as you say, doing it in VS also adds the reference.

This discussion has been closed.