Open Spongman opened 4 years ago
This isn't currently supported but you should be able to reference the package directly using #r nuget
.
Also possibly related: #890
This is starting to affect my current work. Mostly I need to perform visualizations on data, e.g. MSAGL graph viewer that requires Windows Forms.
Priority will be appreciated.
Faisal
Any updates around framework reference, isn't this useful also for aspnetcore apps? cheers
It seems like this does work now, but it's not documented here.
Example: create a brand new notebook, with a C# block with the following content only:
using System.Net.Http.Json;
When you run it, it will return:
Error: (1,23): error CS0234: The type or namespace name 'Json' does not exist in the namespace 'System.Net.Http' (are you missing an assembly reference?)
If you change the code to:
#r "System.Net.Http.Json.dll"
using System.Net.Http.Json;
It will work. This should be improved in the docs for #r
in my opinion (and ideally there should be some sort of suggestion to import the corresponding system DLL like VS and Rider do).
how do you add a framework reference, similar to the following
.csproj
line:?
The following code block
Gives the following error:
With
.csproj
you don't need an assembly reference, the aboveFrameworkReference
element includes the SignalR dlls.