Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@fiseni
Copy link
Owner

@fiseni fiseni commented Oct 2, 2025

Fixes #43

@fiseni fiseni requested a review from Copilot October 2, 2025 19:18
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the system to embed PEM content directly in the generated MSBuild assets instead of extracting them from assemblies at runtime. The change shifts PEM handling from a resource-based approach to a build-time task item approach.

Key Changes:

  • Introduced a new Pems property to ValidateLicenseTask that accepts PEM data as task items
  • Modified the asset generation to embed PEM content directly in the generated .props files as MSBuild items
  • Updated tests to reflect the new PEM handling mechanism

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/NuSeal/ValidateLicenseTask.cs Added Pems property and validation logic for task items
src/NuSeal/GenerateConsumerAssetsTask.cs Added PEM processing from task items instead of assembly resources
src/NuSeal/ConsumerParameters.cs Added Pems parameter to constructor and as property
src/NuSeal/Assets.cs Modified to embed PEM content in generated MSBuild assets
src/NuSeal/build/NuSeal.targets Added ConsumerPems parameter to task invocation
tests/NuSeal.Tests/ValidateLicenseTaskTests.cs Refactored tests to use new PEM handling approach
tests/NuSeal.Tests/GenerateConsumerAssetsTaskTests.cs Updated tests for new task item PEM validation
tests/NuSeal.Tests/ConsumerParametersTests.cs Added PEM parameter to constructor calls
tests/NuSeal.Tests/AssetsTests.cs Updated asset generation tests for embedded PEM content

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@fiseni fiseni merged commit 9bad5d3 into main Oct 2, 2025
1 check passed
@fiseni fiseni deleted the nusealpem branch October 2, 2025 19:22
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.

Embed the PEM content in the generated assets.

1 participant