paket.reference to recognizing github packages in paket.lock file
See original GitHub issueDescription
The paket.dependencies file is:
source https://www.nuget.org/api/v2
github fsprojects/Argu
Repro steps
- Create a F# Windows console application using VS 2015/17 Community Edition (OS: Windows 2008 R2)
- Perform
paket init
- Create paket.dependencies file with the following contents:
source https://www.nuget.org/api/v2
github fsprojects/Argu
- Create paket.references file in project with contents:
Argu
- Perform
paket update
(orpaket 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:
- Created 6 years ago
- Reactions:3
- Comments:10 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@forki I reviewed the documentation again, GitHub dependencies. At the time I somehow thought that
paket
allowed the import ofgithub
hosted libraries similar to how it treatednuget
. Upon review, that is not the case. The documentation in this area could use some work.Thanks for your attention. George.
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.