Skip to content

Latest commit

 

History

History
21 lines (10 loc) · 487 Bytes

File metadata and controls

21 lines (10 loc) · 487 Bytes

Working with NuGet packages

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"