Open Oblomoff opened 1 year ago
This is a subtle difference between the C# Script, F# Script, and notebook dialect. F# directly allows "#r "nuget:..."
, as does the notebook, but from a pure .csx
viewpoint, that's not allowed as a part of the language.
#load ...
isn't handled by .NET Interactive, it's instead passed directly to C# as a compiler directive.
If the gesture was instead #!import ...
this should work as is.
So... how do you work around this? I installed .NET 8 SDK and VS Code in a fresh windows 11 sandbox and get this error.
It looks like you have a space before the #r
line. Removing that space should solve it.
Description
F# scripts are loaded fine
Example
See example project: NotebooksBug.zip
script.csx
notebook.ipynb
.NET Interactive
Environment