Can `dotnet fsi` be run in .NET Framework mode?

Viewed 366

I'd like to reference some .NET Framework-only packages from an F# script, and run it using:

dotnet fsi script.fsx

I'm getting the following error message:

warning NU1701: Package 'Hymans.ESF.Api 1.9.0' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework 'net5.0'. This package may not be fully compatible with your project.

Is there a way to use dotnet fsi with .NET Framework packages?

1 Answers

If you have Visual Studio installed, you can run the .NET Framework version of F# Interactive by executing fsi.exe from a developer command prompt.

Related