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

Add PackageReferences to nuget packages #215

Closed
wants to merge 1 commit into from

Conversation

Smaug123
Copy link
Contributor

@Smaug123 Smaug123 commented Oct 4, 2024

I think we are currently simply missing all PackageReferences?

There's no corresponding NuGetPackageId on a PackageReference, so I've gone with simply obtaining the Include value.

The whitespace changes earlier in the file are the result of dotnet fantomas ..


let packageReferences =
p.Items
|> Seq.filter (fun p -> p.ItemType = "PackageReference")
Copy link
Contributor Author

@Smaug123 Smaug123 Oct 4, 2024

Choose a reason for hiding this comment

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

Shout if you would like to commonise this. For example, I could Seq.choose into a Choice1Of2 and Choice2Of2 and then match on that to decide whether to use EvaluatedInclude or NuGetPackageId. I've raised an alternative phrasing at #216 if you would prefer to take that PR instead.

@Smaug123
Copy link
Contributor Author

Smaug123 commented Oct 5, 2024

Gonna go with the other PR which is cleaner.

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.

1 participant