-
Notifications
You must be signed in to change notification settings - Fork 484
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
Add CPM scenario for NU1604 #3320
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -32,3 +32,22 @@ or | |||||||||
> `<PackageReference Version="9.0.0" />` | ||||||||||
|
||||||||||
which implies a lower bound. | ||||||||||
|
||||||||||
If using [Central Package Managment](https://learn.microsoft.com/nuget/consume-packages/Central-Package-Management) you will need to update the `PackageVersion` `Version` attribute in your `Directory.Packages.Props` file. | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: my readability preference would be for something between these two words..
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
For example change from: | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
||||||||||
> `<PackageVersion Include="PackageA" Version="(9.0.0, )" />` | ||||||||||
|
||||||||||
|
||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. extra blank line |
||||||||||
to: | ||||||||||
|
||||||||||
> `<PackageVersion Include="PackageA" Version="[9.0.0, )" />` | ||||||||||
|
||||||||||
or | ||||||||||
|
||||||||||
> `<PackageVersion Include="PackageA" Version="9.0.0" />` | ||||||||||
|
||||||||||
which implies a lower bound. | ||||||||||
|
||||||||||
> [!Note] | ||||||||||
> When using CPM and the file `Directory.Packages.Props` is invalid, NU1604 is raised. | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added this because the original issue is related to an invalid file but makes me think this is a bug instead of a docs issue. @jeffkl what do you think? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Normally this would be a different scenario.
We'd have another Issue, Solution etc.
We should also call out that this is a special case, since in a properly onboarded CPM scenario, you'd get NU1008.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't sure if I should put it in another Solution section since it's the same error but yeah it's a special case so I can start with that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's prior art from both restore and pack.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When CPM is enabled, is the warning/error message the same, or different?
If the warning/error message is different when CPM is enabled compared to when it's not, it's important to have a sample of the message in these docs so that if the customer searches those words, they're more likely to find these docs.