top | item 44124026

(no title)

janjones | 9 months ago

What do you mean by incompatible? If you mean syntax, that's different intentionally for clarity and also we don't want to create a new C# scripting dialect hence it isn't possible to "import" other files (that's not how C# works).

discuss

order

debugnik|9 months ago

You were already using F#'s syntax for C# NuGet references in .NET Interactive. Even NuGet itself labels this syntax "Script & Interactive" in its picker.

https://github.com/dotnet/interactive/blob/main/docs/nuget-o...

Now you've created a new dialect.

janjones|9 months ago

.NET interactive uses a dialect of C# - the script dialect. With file based apps, we strive to use the standard C#, so you can convert file based apps to full projects at any time.

pjmlp|9 months ago

The # declarations syntax for Assembly references.

janjones|9 months ago

Assembly references are not really a mainline scenario, hence we support nuget package references only for now. And `#r` is just too opaque (it comes from old times when assembly references were the norm).