-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: paket.local override nuget package with csproj. #1803
Comments
Think #724 is a related issue |
This could be interesting however much effort would be required - AFAIK there's currently no utility in Paket to build xprojs |
After a gitter discussion on a wish/question I had, this issue was mentioned. We discussed the following option: How about giving the option to specify a .dll (/.exe) file in the .local file? Then the only thing paket has to do is replace the hint path in the project file. The difficult paths (finding the outpt filename of the project, taking into account solution settings, etc, etc is then up to the user) |
As of now there's a possibility to give path to a nupkg file. The workflow would then look like this:
You might consider the additional step in build process (creating a nupkg) redundant when the package is really just a single dll, however such solution was the easiest way to incorporate |
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. |
One remaining "issue" for me is that if i have to make a nupkg file, i have spent 90% of the time of the build already... |
@gertjvr what we could do then is to allow for optional |
In my situation, I'm building a package using a script, that consumes most of the time. If I still have to build the package every time, I won't be using the paket.local to override, i'd just push them to a server and pull from there |
issue with pinned is paket restore fails to restore with version 0.0.0 if paket.dependencies has a specific version / range. |
I mean pinned version in the local file |
sry for my ignorance is that currently implemented? |
No not yet. But should be doable with little effort, hence my suggestion |
I'll give it a go soon and keep you updated |
That would be amazing On 1 Aug 2016 7:05 PM, "Tomasz Heimowski" [email protected] wrote:
|
PR submitted - #1843 |
Worked!!! 😀 now to blog |
Awesome. Post link when you are ready ;-) |
@gertjvr glad it helped! you might have a look at my blog entry on similar topic - I based on "Git override" though |
Description
Feature request, what I am after is the ability to use
paket.local
file to override anuget package reference
with thecsproj
file that was used to produce tonuget package
.I have two example repositories ServiceA and ServiceB,
ServiceB
has anuget package
reference toServiceA.MessageContract
a sub project ofServiceA
repository.Repro steps
paket.local
file with content as below.paket\paket restore
Expected behavior
The
nuget reference
inServiceB
is replaced withcsproj reference
ofServiceA.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 anuget package
so thatpaket.local
can successfully override them locally.cc @theimowski
The text was updated successfully, but these errors were encountered: