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.

Feature Request: paket.local override nuget package with csproj.

See original GitHub issue

Description

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

  1. Create a paket.local file with content as below
nuget ServiceA.MessageContracts -> project c:\github\ServiceA\src\ServiceA.MessageContracts\ServiceA.MessageContracts.csproj
  1. 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:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:18 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
gertjvrcommented, Aug 3, 2016

Worked!!! 😀 now to blog how to develop microservices locally using this feature

2reactions
gertjvrcommented, Jul 26, 2016

The 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.

Read more comments on GitHub >

github_iconTop 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 >

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