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 install does not do a dotnet restore and does not notify Ionide

See original GitHub issue

When you call paket install, I would expect dotnet restore to be implicitly called, but it is not - you have to explicitly call dotnet restore in order to get installed projects to show up. Using paket global tool version 5.207.0.

Steps to reproduce

  1. Create an empty F# console application.
  2. Convert it to paket
  3. Add Saturn to the dependencies file.
  4. Add a paket references file and add Saturn as well.
  5. Run paket install.
  6. Try to open the Saturn namespace. Observe that the compiler does not recognise it in e.g. Ionide.
  7. Run dotnet restore.
  8. Observe that the namespace is now available.

Sample dependencies file

source https://www.nuget.org/api/v2
storage: none

nuget Saturn

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
forkicommented, May 21, 2019

On a clean project there won’t be a project.assets.json though

dotnet new is calling dotnet restore. So yes you have that file hanging around

1reaction
forkicommented, May 21, 2019

can you please update the text with when you open ionide in the process

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't get paket to work for the simplest case : r/fsharp
I think you need to run `dotnet paket restore`; this will ensure that the package is actually restored and available to your app....
Read more >
Getting Started with Paket – Part 1 - The Cockney Coder
Add a single line into the file – just the word webgrease. Run paket install. Remember that since paket automatically checks if the...
Read more >
I can't use libraries installed with paket tool
If your dotnet version is 6.0, you can't use any library you added. Solution is simple: just add net6.0 to that line. framework:...
Read more >
release-notes
Restore command doesn't calc install model. Use https in DefaultNugetStream - https://github.com/fsprojects/Paket/pull/251; BUGFIX: Paket only deletes files ...
Read more >
fsautocomplete 0.56.2
NET tool you can call from the shell/command line. ... Restore dotnet tools to install local Paket and FAKE dotnet tool restore; Build...
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