Skip to content
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

Pack: Allow project reference version to be a VersionRange #3097

Merged
merged 2 commits into from
Feb 12, 2020
Merged

Pack: Allow project reference version to be a VersionRange #3097

merged 2 commits into from
Feb 12, 2020

Conversation

tibel
Copy link
Contributor

@tibel tibel commented Oct 25, 2019

Bug

Fixes: NuGet/Home#5556 (partially)
Regression: No

Fix

Having version ranges for package references is possible already.
But for project references only a minVersion is supported yet.

This change adds version range support for project references (but no floating versions).

This is not a complete fix for the mentioned issue, as it fixes only the blocking issue in PackTaskLogic. I think there is more discussion necessary on how to implement NuGet/Home#5556.

Testing/Validation

Tests Added: No
Reason for not adding tests: Where not sure if needed. There was no test for the feature before. Also I was not sure what I need to test this.
Validation: -

@nkolev92
Copy link
Member

nkolev92 commented Jan 9, 2020

Hey @tibel sorry for the delay. Would you be able to rebase on top of latest dev?

@tibel
Copy link
Contributor Author

tibel commented Jan 10, 2020

Rebased on latest dev

@nkolev92 nkolev92 merged commit 66a01b3 into NuGet:dev Feb 12, 2020
@nkolev92
Copy link
Member

Thanks for the contributing @tibel

We hope to fix the underlying problem eventually but this unblocks at least some scenarios today.

@MartyMcFly85
Copy link

We badly need this. Currenty we are patching our packages after they have been packed by NuGet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow an upper limit Version for ProjectReference references in nupkg from dotnet pack to support semver
4 participants