Feature Request: paket.local override nuget package with csproj.
See original GitHub issueDescription
Feature request, what I am after is the ability to use paket.local
file to override a nuget package reference
with the csproj
file that was used to produce to nuget package
.
I have two example repositories ServiceA and ServiceB, ServiceB
has a nuget package
reference to ServiceA.MessageContract
a sub project of ServiceA
repository.
Repro steps
- Create a
paket.local
file with content as below
nuget ServiceA.MessageContracts -> project c:\github\ServiceA\src\ServiceA.MessageContracts\ServiceA.MessageContracts.csproj
- Run
.paket\paket restore
Expected behavior
The nuget reference
in ServiceB
is replaced with csproj reference
of ServiceA.MessageContracts
Known workarounds
The main issue is that our nuget package version number isn’t stored in the git repository so have to customise the build script to pass a build number
to recreate a nuget package
so that paket.local
can successfully override them locally.
cc @theimowski
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:18 (9 by maintainers)
Top Results From Across the Web
Override a nuget package reference with a local project ...
I'd like iterate on a nuget package without continuously pushing the package to a nuget feed. I'm wondering if it's possible to conditionally ......
Read more >PackageReference in project files - NuGet
In this article ... Package references, using <PackageReference> MSBuild items, specify NuGet package dependencies directly within project files, ...
Read more >Paket workflow for testing new NuGet package before release
nuget ToyPaketCalulator token identifies NuGet package that the override corresponds to,; -> splits the package id (left side) and actual override (right side), ......
Read more >The paket.local file
Note: In the case of source overrides, paket restore assumes that the NuGet package already exists in the directory pointed to, no build...
Read more >NuGet packages in the Package Registry
Generates NuGet packages by the msbuild method. ... Webhook requests to local network addresses are blocked to prevent exploitation of internal web services ......
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
Worked!!! 😀 now to blog
how to develop microservices locally
using this featureThe only issue we have is that the nupkg version number isn’t discoverable from the local build process, in our case a locally build version is 0.0.0 and paket restore = local override, fails because it looking the nupkg with the exact reference version number.