Skip to content

Added Embedded Resource Capability - #6303

Merged
jgonz120 merged 12 commits into
dev-feature-PackageDomainModelfrom
dev-jgonz120-AddLocalEmbeddedREsource
Mar 8, 2025
Merged

jgonz120 merged 12 commits into
dev-feature-PackageDomainModelfrom
dev-jgonz120-AddLocalEmbeddedREsource

Conversation

@jgonz120

@jgonz120 jgonz120 commented Mar 6, 2025

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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.

@jebriede jebriede left a comment

Copy link
Copy Markdown
Contributor

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
@jgonz120
jgonz120 deleted the dev-jgonz120-AddLocalEmbeddedREsource branch March 8, 2025 02:45
jebriede pushed a commit that referenced this pull request Mar 24, 2025
* Add local embedded resouce

* Added remote resource

* Added tests

* Pr comments

* Switched to value task

* remove local

* Added ReadmeUri back as a property

* typo

* rename tests

* Update test

* combine test

* rename tests
jebriede pushed a commit that referenced this pull request Apr 16, 2025
* Add local embedded resouce

* Added remote resource

* Added tests

* Pr comments

* Switched to value task

* remove local

* Added ReadmeUri back as a property

* typo

* rename tests

* Update test

* combine test

* rename tests
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