Skip to content

Add support for IfDifferent in publishing targets - #3

Closed
JanKrivanek wants to merge 2 commits into
mainfrom
dev/jankrivanek/support-ifdifferent-pr
Closed

JanKrivanek wants to merge 2 commits into
mainfrom
dev/jankrivanek/support-ifdifferent-pr

Conversation

@JanKrivanek

Copy link
Copy Markdown
Owner

Add support for IfDifferent CopyToPublishDirectory option in publishing and static web assets targets.

@JanKrivanek

Copy link
Copy Markdown
Owner Author

/add-tests

1 similar comment
@JanKrivanek

Copy link
Copy Markdown
Owner Author

/add-tests

@github-actions

github-actions Bot commented Apr 9, 2026 •

Copy link
Copy Markdown

❌ Add Tests for PR Changes failed. Please review the logs for details.

@JanKrivanek

Copy link
Copy Markdown
Owner Author

/add-tests

@github-actions

github-actions Bot commented Apr 9, 2026 •

Copy link
Copy Markdown

✅ Add Tests for PR Changes completed successfully!

github-actions Bot added a commit that referenced this pull request Apr 9, 2026
Add two new test cases to GivenThatWeWantToPublishWithIfDifferent:
- It_propagates_IfDifferent_from_CopyToOutputDirectory_to_CopyToPublishDirectory:
  Tests that DefaultCopyToPublishDirectoryMetadata correctly propagates
  CopyToOutputDirectory=IfDifferent to CopyToPublishDirectory.
- It_publishes_EmbeddedResource_files_with_IfDifferent_metadata:
  Tests that EmbeddedResource items with CopyToPublishDirectory=IfDifferent
  are published correctly.

These tests cover scenarios added to Microsoft.NET.Publish.targets in PR #3
that were not previously exercised by the existing test suite.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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