Skip to content

NuGet package references no longer work in F# Interactive (.NET Framework only) in VS 16.10.0 #11622

Closed

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


[severity:It's more difficult to complete my work] [regression] [worked-in:16.9.5]

To reproduce:

  • Ensure Tools > Options > F# Tools > F# Interactive > Use .NET Core scripting is set to False.
  • Open F# Interactive.
  • Type #r "nuget: Newtonsoft.Json";;

I get the following error message:

  #r "nuget: Newtonsoft.Json";;
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^

stdin(1,1): error FS3216: Package manager key 'nuget' was not registered in [C:\Users\mpattison\AppData\Local\assembly\dl3\4H0BMNOV. VYQ\TN065Y4K. YRA\97a5ac2c\31a0ed1b_8351d701; c:\program files (x86)\microsoft visual studio\2019\professional\common7\ide\commonextensions\microsoft\fsharp\Tools\], []. Currently registered: 

This applies to fsi.exe, fsiAnyCpu.exe and the .NET Framework version of F# Interactive in the IDE.

dotnet fsi, which uses .NET Core (or 5.0) is unaffected.

A workaround is to run fsi.exe --compilertool:"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\CommonExtensions\Microsoft\FSharp.

I'm running Windows 10 Enterprise N, version 1909.


Original Comments

Feedback Bot on 5/26/2021, 07:51 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.


Original Solutions

(no solutions)

Activity

  1. changed the title [-]NuGet package references no longer work in F# Interactive in VS 16.10.0[/-] [+]NuGet package references no longer work in F# Interactive (.NET Framework only) in VS 16.10.0[/+] on Jun 2, 2021
  2. cartermp commented on Jun 2, 2021

    @cartermp
    Contributor

    Note: if you use .NET Core scripting, this is not an issue

  3. added
    Area-VS-FSI
    Impact-Medium
    on Jun 2, 2021
  4. added this to the Backlog milestone on Jun 3, 2021
  5. zyzhu commented on Jun 3, 2021

    @zyzhu

    As .NET Core scripting does not support script debugging yet, this is high severity at least in my workflow that prevents me from upgrading VS to any newer version.

  6. modified the milestones: Backlog, 17.0 on Jun 4, 2021
  7. gusty commented on Jun 8, 2021

    @gusty
    Contributor

    @cartermp NET Core scripting is not an option for everyone. I strongly suggest to change severity to high. This issue has really a very high impact.

  8. added
    Impact-High
    and removed
    Impact-Medium
    on Jun 8, 2021
  9. 4 remaining items

  10. KevinRansom commented on Jun 8, 2021

    @KevinRansom
    Contributor

    I was wrong, it's not fixed.

  11. added a commit that references this issue on Jun 9, 2021
    5334983
  12. KevinRansom commented on Jun 9, 2021

    @KevinRansom
    Contributor

    This hasn't flowed to a VS release branch yet.

  13. markpattison commented on Jun 18, 2021

    @markpattison
    Contributor

    Hi @KevinRansom ,

    Any idea whether this will be available in the next couple of weeks? I'm doing an internal demo at my company and it would be a lot smoother if this fix were available.

    (It was me who raised the original ticket - serves me right for upgrading VS straight away 😂)

    Thanks!

  14. cartermp commented on Jun 18, 2021

    @cartermp
    Contributor

    @markpattison this is scheduled to be in the 16.11 release, but we don't know the exact date when that ships just yet. But the fix is in, so it should light up when 16.11 releases. I believe there are some additional steps we need to take to ensure it's in there, since 16.11 is a special servicing-only/LTS release.

  15. brettfo commented on Jun 25, 2021

    @brettfo
    Member

    We've merged this fix into the internal VS 16.11 branch just this morning. As @cartermp mentioned, we don't have an exact ship date yet, but it will be there.

    Thanks for finding and filing the issue.

  16. fwaris commented on Jul 8, 2021

    @fwaris

    should have read this before upgrading vs :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Area-VS-FSIImpact-HighRegression

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions