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

Added Embedded Resource Capability #6303

Merged

Conversation

jgonz120
Copy link
Contributor

@jgonz120 jgonz120 commented Mar 6, 2025

Bug

Fixes: https://github.com/NuGet/Client.Engineering/issues/3198

Description

Added new capability for downloading embedded resources for packages.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

@jgonz120 jgonz120 requested a review from a team as a code owner March 6, 2025 19:09
@jgonz120 jgonz120 changed the base branch from dev to dev-feature-PackageDomainModel March 6, 2025 19:09
private INuGetPackageFileService _nugetPackageFileService;
private PackageModel _package;

public EmbeddedResourcesCapability(INuGetPackageFileService nugetPackageFileService, PackageModel package, Uri? iconUri, Uri? licenseUri, Uri? readmeUri)
Copy link
Contributor

Choose a reason for hiding this comment

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

If it's possible to have a License and not a README or icon, should these be separate classes instead? Otherwise, should these be required parameters?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's possible, but the capabilities are added in the package definitions, right? I don't know if there's a type of package that only includes one of the embedded resources.

Copy link
Contributor

@jebriede jebriede left a comment

Choose a reason for hiding this comment

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

Approved with suggestions.

@jgonz120 jgonz120 merged commit edc3394 into dev-feature-PackageDomainModel Mar 8, 2025
1 of 23 checks passed
@jgonz120 jgonz120 deleted the dev-jgonz120-AddLocalEmbeddedREsource branch March 8, 2025 02:45
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.

3 participants