The C# and F# kernels in .NET Interactive allow you to import NuGet packages into your interactive session using the #r nuget magic command. The syntax is the same in both languages.
To import the latest version a package, you can use #r nuget without specifying a version number:
#r "nuget:System.Text.Json"If you'd like to use a specific version, you can specify it like this:
#r "nuget:System.Text.Json,4.7.2"