interactive icon indicating copy to clipboard operation
interactive copied to clipboard

NuGet & Local Packages on WSL2

Open HowardvanRooijen opened this issue 1 year ago • 1 comments

Describe the bug

I'm trying to do some development inside WSL2 on a .NET Interactive Notebook (.dib format). I have local packages published to:

~/home/USERNAME/code/dotnet-sample/_packages

I've tried to use the #i "nuget:" format to reference the local folder i.e.

#i "nuget:~/home/USERNAME/code/dotnet-sample/_packages"

And have tried many different permutations of the file path format, but get the following error:

Error: PackageManagement Error 3217 Invalid URI: The format of the URI could not be determined.

Please complete the following:

  • Version: 1.0.431302+bd4cbf9d5b5a501ebf55c887f8591d851d046f4f
  • Library version: 1.0.0-beta.23313.2+bd4cbf9d5b5a501ebf55c887f8591d851d046f4f
  • Build date: 2023-06-13T18:23:18.0000000Z
  • OS
    • [X] Windows 11
    • [X] Linux WSL2 Debian
  • Frontend
    • [X] Visual Studio Code

/cc @KevinRansom

HowardvanRooijen avatar Jul 10 '23 06:07 HowardvanRooijen

@HowardvanRooijen did you try the absolute path without the ~ .ie. /usr/username... ? I find ~ often does not work for these kinds of things. What I am finding trying to use #i is that relative URIs just don't seem to work at all so this means this feature cant be used for scripts that are shared across a team (if that is indeed the case.).

dburriss avatar Feb 23 '24 12:02 dburriss