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

fix bug in dotnet list package & add test #2690

Merged
merged 5 commits into from
Jan 24, 2019

Conversation

heng-liu
Copy link
Contributor

Bug

Fixes: #7607
Regression: No

  • Last working version:
  • How are we preventing it in future:

Fix

Details: add filter to ignore the TFM + RID records when get resolved versions

Testing/Validation

Tests Added: Yes
Validation: Assets file created correctly with TFM & TFM+RID, only one section per TFM is shown when running dotnet list package command.

Copy link
Member

@nkolev92 nkolev92 left a comment

Choose a reason for hiding this comment

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

👏
Just a nit.

@@ -375,6 +375,11 @@ internal static bool IsPackageReferenceProject(Project project)
requestedTargets = filteredTargets;
}

// In 2.2.100 of CLI. DotNet list package would show a section for each TFM and for each TFM/RID.
Copy link
Member

Choose a reason for hiding this comment

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

Remove this line. You don't need it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! I'll remove it.

@heng-liu heng-liu merged commit eaea86c into dev Jan 24, 2019
@nkolev92 nkolev92 deleted the dev-hengliu-fixDotnetListPackageDuplicate branch January 24, 2019 18:17
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.

dotnet list package on a solution outputs duplicate entries for framework
2 participants