You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
F# Interactive does not auto-load script inside NuGet package. #18176
I noticed after reading the source code, that when referencing a NuGet package F# Interactive automatically loads file content/MyPackage.fsx of the package if it exists. However it didn't work when I tried it.
> #r "nuget: fsharpinteractiverepro";;
[Loading C:\Users\teo\.packagemanagement\nuget\Projects\24532--6e3f902d-4865-44ce-abd1-cebf1ab7db93\Project.fsproj.fsx
Loading C:\Users\teo\.nuget\packages\fsharpinteractiverepro\1.0.0\content\FSharpInteractiveRepro.fsx]
module FSI_0003.Project.fsproj
module FSI_0003.FSharpInteractiveRepro
val num: int
> FSharpInteractiveRepro.num;;
val it: int = 579
Actual behavior
> #r "nuget: fsharpinteractiverepro";;
[Loading C:\Users\teo\.packagemanagement\nuget\Projects\3356--4b38b24b-1499-4dd4-8293-265011f7b2cf\Project.fsproj.fsx]
module FSI_0003.Project.fsproj
> FSharpInteractiveRepro.num;;
FSharpInteractiveRepro.num;;
^^^^^^^^^^^^^^^^^^^^^^
stdin(3,1): error FS0039: The value, namespace, type or module 'FSharpInteractiveRepro' is not defined. Maybe you want one of the following:
FSharpInterfaceDataVersionAttribute
FSharp
Known workarounds
None known.
Related information
I am using .NET 9 SDK, but I think it reproduces in earlier versions since that code has not changed very much.
Activity