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

JasonSteeleJasonSteele GBBeta ✭✭
edited July 9 in Workbooks & Inspector

Hi,
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?

Thanks

Tagged:

Answers

  • 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.