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

Skip to content

Conversation

@fiseni
Copy link
Owner

@fiseni fiseni commented Sep 30, 2025

Fixes #28
Related to parent #27

  • Generate assets for author dynamically. Removed the stubs.
  • Removed NuSealProtected, NuSealValidationMode and NuSealValidationScope assembly attributes.
  • No longer injecting attributes to author's assembly.
  • Generate unique properties and targets per author.
  • Embed author choices in the generated assets.
  • Embed author's metadata in the generated assets.
  • No longer scanning assemblies. Find the author's DLL from the PackageId.
  • Other improvements.

@fiseni fiseni requested a review from Copilot September 30, 2025 11: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 NuSeal package generation system to dynamically generate unique assets per author. The changes remove stubs and assembly attributes in favor of embedding author choices and metadata directly in generated assets.

Key changes:

  • Removed NuSealProtected, NuSealValidationMode, and NuSealValidationScope assembly attributes in favor of embedding author choices directly
  • Replaced stub-based asset generation with dynamic per-author asset generation using unique property and target names
  • Consolidated license validation tasks into a single ValidateLicenseTask that finds protected DLLs by PackageId instead of scanning assemblies

Reviewed Changes

Copilot reviewed 28 out of 28 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
ValidateLicenseTaskTests.cs New comprehensive test suite for the unified license validation task
GenerateConsumerAssetsTaskTests.cs Tests for the new dynamic asset generation task
Assets.cs New utility class for generating unique MSBuild props and targets content
ConsumerParameters.cs New parameter class encapsulating consumer package configuration
ValidateLicenseTask.cs New unified task replacing separate direct/transitive validation tasks
GenerateConsumerAssetsTask.cs New task replacing PrepareAssetsForConsumerTask with dynamic generation
NuSeal.targets Updated to use new task names and parameters

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

@fiseni fiseni merged commit 36e7604 into main Sep 30, 2025
1 check passed
@fiseni fiseni deleted the unique-assets branch September 30, 2025 11:55
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.

Generate unique assets per author package

1 participant