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
Answers
Hi Jason,
The
Mono.CSharp
reference is added because it is part of theMicrosoft.Azure.Graphs
NuGet package. If you download the package and unzip it, you will see that the two assemblies are both in thelib\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.
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.