question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

paket dependency manager doesn't work out of the box in VS, but it does if compiles with VS

See original GitHub issue

When I pull the release of FSharp.DependencyManager.Paket.dll from https://github.com/fsprojects/Paket/releases and drop it next to the location it is required under dotnet fsi (under the dotnet sdk folder, next to the nuget extension), it just works.

However, when I attempt to do so, in order for VS to pick it up, dropping under the commonextensions/microsoft/fsharp folder, VS doesn’t pick it up.

Repro steps

  • download FSharp.DependencyManager.Paket.dll from https://github.com/fsprojects/Paket/releases
  • (§) drop it in your VS installation (C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\CommonExtensions\Microsoft\FSharp for example)
  • open a script with #r "paket: nuget Foo" in it

Expected behavior

Typechecks

Actual behavior

Complains about the extension “paket” not being present.

Known workarounds

FSharp.DependencyManager.Paket.release.zip

Related information

It always behaved this way, it is not something which broke due to a change, but it should be fixed if possible.

I suspect it impacts any other extensions than the one which Microsoft ships, I don’t know why it works out of the box in the dotnet sdk but not in VS.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
dsymecommented, Apr 4, 2022

We should have a design document (e.g. tooling RFC) that specifies how the DependencyManager things work. It’s hard to tell what the intended design is.

1reaction
KevinRansomcommented, Mar 31, 2022

I will take a look when I get a chance.

Read more comments on GitHub >

github_iconTop Results From Across the Web

paket dependency manager doesn't work out of the box in ...
paket dependency manager doesn't work out of the box in Rider, but it does if I compile it myself with VS. This is...
Read more >
Why can't I add packages with Paket?
A line with nuget xunit appeared in the paket.dependencies file. But there is no xunit line in the paket.references file. If I add...
Read more >
Manage NuGet packages with the Visual Studio ...
See how to work with NuGet packages by using PowerShell commands in the Visual Studio Package Manager Console.
Read more >
Visual Studio fails after upgradeing to 17.1.1.
I have attempted to delete the ~\AppData\(Local|Roaming)\Visual Studio\17.0* directories, and did a full repair on the installation, but neither ...
Read more >
Lesson 26. Working with NuGet packages - liveBook · Manning
Scripts work more easily with Paket-sourced dependencies, and it doesn't couple you to Visual Studio if you decide you want to, for example,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found