-
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
Cleanup and Fix Framework restrictions #2317
Comments
About the last statement: I don't think it matters if we break anything. They probably won't notice because a lot of libraries provide only a netstandard target and then netstandard packages are pulled anyway.. Here is my suggestion:
|
Suggestion 2: Get rid of the |
This is now kind of implemented, we only have |
Intro
Framework restrictions are a feature to handle NuGet dependency groups. That is their primary responsibility. Sadly we leak that implementation detail in the
paket.dependency
andpaket.references
files with confusing effects for the user.Description
There is no user definition on what
>= netstandard1.3
or<= net45
means. But both are allowed in all paket files, with a wide range of unexpected effects.Paket internally uses
>=
and<=
to define special operations which are not easily explained and have nothing to do with "compatible with" (as one might assume).For example ">= netstandard13" currently means "a NetStandard framework with a higher version than 1.3" and NOT "any target framework compatible with netstandard 1.3", because that would include some net-frameworks, see
Paket/src/Paket.Core/Versioning/Requirements.fs
Lines 502 to 535 in 654b239
Possible actions
>=
and<=
or mark them invalid>
and<
or mark them invalid>=
...Disclaimer
I really think stuff is working quite well. So any change in this needs to be really carefully reviewed. As we don't have any documentation on
>=
and<=
I don't think breaking stuff there is quite as important. I know that since the early netstandard hacks some people use>= net45
to get rid of netstandard dependencies.The text was updated successfully, but these errors were encountered: