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

Updated NU1012 error message to display item paths #4843

Merged
merged 1 commit into from
Oct 10, 2022
Merged

Updated NU1012 error message to display item paths #4843

merged 1 commit into from
Oct 10, 2022

Conversation

danjagnow
Copy link
Contributor

@danjagnow danjagnow commented Oct 5, 2022

Bug

Fixes: NuGet/Home#11905

Regression? Last working version:

Description

Updated the NU1012 error message created in PackageBuilder to display a comma-delimited list of item paths instead of a list of frameworks. Updated the SavingPackageValidatesMissingTPVInFiles unit test in PackageBuilderTests to adjust the expected results accordingly. The comment for the MissingTargetPlatformVersionsFromIncludedFiles string resource in Strings.resx ("0 - comma-separated list of files with bad TFMs") suggests that this was the original intent for this message. Resolves #11905.

PR Checklist

Updated the NU1012 error message created in PackageBuilder to display a comma-delimited list of item paths instead of a list of frameworks.  Updated the SavingPackageValidatesMissingTPVInFiles unit test in PackageBuilderTests to adjust the expected results accordingly.  The comment for the MissingTargetPlatformVersionsFromIncludedFiles string resource in Strings.resx ("0 - comma-separated list of files with bad TFMs") suggests that this was the original intent for this message.  Resolves #11905.
@danjagnow danjagnow requested a review from a team as a code owner October 5, 2022 04:19
@ghost ghost added the Community PRs created by someone not in the NuGet team label Oct 5, 2022
@ghost
Copy link

ghost commented Oct 5, 2022

CLA assistant check
All CLA requirements met.

Copy link
Contributor

@RussKie RussKie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@nkolev92
Copy link
Member

nkolev92 commented Oct 5, 2022

Thanks for the contribution @danjagnow

Can you please fill out the checklist and follow the instructions in the template?

It'd be great to create a docs issue to update the example there, https://github.com/NuGet/docs.microsoft.com-nuget/blob/main/docs/reference/errors-and-warnings/NU1012.md.

@danjagnow
Copy link
Contributor Author

@nkolev92, I did my best to fill out the template. Hopefully that's better. Let me know if there are other changes I should make. Thanks for providing the link to the docs for NU1012.

@nkolev92
Copy link
Member

nkolev92 commented Oct 5, 2022

Looks great @danjagnow, thank you.

@erdembayar
Copy link
Contributor

@nkolev92 @dominoFire
Could we merge this PR?

@nkolev92 nkolev92 merged commit 64ee84a into NuGet:dev Oct 10, 2022
@nkolev92
Copy link
Member

nkolev92 commented Oct 10, 2022

Merged.
This should've gotten a community shepherd assigned, but that slipped through, as the person that assigns them is on vacation.

@danjagnow danjagnow deleted the dev-danjagnow-nu1012-message branch October 10, 2022 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community PRs created by someone not in the NuGet team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide solution for NuGet Error NU1012 - the pack error does not call out the problem files
6 participants