fsharp icon indicating copy to clipboard operation
fsharp copied to clipboard

dotnet fsi file package source reference not working with relative path #i

Open jkone27 opened this issue 3 years ago • 3 comments

#i """ /some/relative/path/containing/nuget/packages"""
#r "nuget: Some.Package"

Expected

i can load the package from a relative folder in my directory, e.g. in a project to test from a script if the package behaves consistently

Actual

without specifying the full filesytem absolute path i cannot load the package in the script

  • Operating system: MacOS (might have the same issue on windows)
  • NET6
  • vscode + ionide or vs for mac

jkone27 avatar Apr 10 '22 18:04 jkone27

@jkone27 hmmm!!!! I thought it was supposed to work. I will take care of fixing it some time.

KevinRansom avatar Apr 14 '22 16:04 KevinRansom

You need #i "nuget: ...", see https://docs.microsoft.com/en-us/dotnet/fsharp/tools/fsharp-interactive/#specifying-a-package-source

dsyme avatar Apr 20 '22 02:04 dsyme

I'll reopen as I think the thing is specifically about relative paths. But we need a correct repro for this please

dsyme avatar Apr 20 '22 02:04 dsyme

Adding "needs design" label as per https://github.com/dotnet/fsharp/pull/16209#issuecomment-1793019675

abonie avatar Nov 06 '23 12:11 abonie