Search code examples
f#visual-studio-codepaket

Using VSCode and Paket to add file to `.fsproj`


I'm using VSCode and Paket to add libraries from Nuget to an F# project/.fsproj file.

From VSCode, I use ctrl+shift+p and use the command Paket: Add Nuget Package (to current project) and enter

FsVerbalExpressions version 0.4.0

Unfortunately, Paket fails with the following error:

Paket version 3.23.2.0
Adding FsVerbaExpressions 0.4.0 to 
c:...\paket.dependencies into group Main
Resolving packages for group Main:
 - FsVerbaExpressions is pinned to 0.4.0
    Package not available.
      Message: Couldn't get package details for package FsVerbaExpressions 0.4.0 on https://www.nuget.org/api/v2.
Paket failed with:
    Could not find versions for package FsVerbaExpressions on https://www.nuget.org/api/v2.

I know that FsVerbalExpressions is available on Nuget. I need the older version because the project I'm working on is targeted at .NET 4.5 and the newer version of FsVerbalExpressions will only work with .NET 4.6.1.


Solution

  • Typos happen. Make sure you proofread your error messages before looking for answers that are already in front of you.