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.reference to recognizing github packages in paket.lock file

See original GitHub issue

Description

The paket.dependencies file is:

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

github fsprojects/Argu

Repro steps

  1. Create a F# Windows console application using VS 2015/17 Community Edition (OS: Windows 2008 R2)
  2. Perform paket init
  3. Create paket.dependencies file with the following contents:
source https://www.nuget.org/api/v2

github fsprojects/Argu
  1. Create paket.references file in project with contents: Argu
  2. Perform paket update (or paket install) from VS menu or commandline

Expected behavior

Argu would now exist as a reference within the project containing the aforementioned paket.reference file.

Actual behavior

The following error message is display (and is not completely represented in VS Error List when install or update is performed from VS’ paket menu):

Paket failed with
-> Installation Errors :
    - <...full path to project...>\paket.references uses NuGet package Argu, but it was not found in the paket.lock file in group Main.

Known workarounds

clone the projects and manually link them into your solutions…ignoring paket.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:3
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

5reactions
gdenniecommented, Feb 27, 2018

@forki I reviewed the documentation again, GitHub dependencies. At the time I somehow thought that paket allowed the import of github hosted libraries similar to how it treated nuget. Upon review, that is not the case. The documentation in this area could use some work.

Thanks for your attention. George.

1reaction
shukriadamscommented, Mar 28, 2021

The use case here is that Paket would allow DotNet to be used in the same way that NPM empowered NodeJS - we can create a complex ecosystem of interrelated packages that exist as source code only, and which are built at import time, instead of per package. This is one of NPM’s greatest strengths - it makes code reuse at the package level trivial.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I reference a Git dependency in my project? #3756
The Git repo contains .fsproj files, so I would expect ... paket.reference to recognizing github packages in paket.lock file #3064.
Read more >
When to use paket.dependencies and paket.references?
After automatically converting my package.config files with paket, I now have a single paket.dependencies file in the root of my solution ...
Read more >
Paket/docs/content/github-dependencies.md at master
Paket will recognize build action for referenced file based on the project type. As example, for a *.csproj project file, it will use...
Read more >
The paket.lock file
A dependency manager for .NET with support for NuGet packages and git repositories.
Read more >
Learn how to use paket
You edit the paket.dependencies and paket.references files by hand as needed. When you run a paket command, it will generate the paket.lock ......
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