Skip to content

Commit

Permalink
When adding content items via targets, provide the NuGetPackageId met…
Browse files Browse the repository at this point in the history
…adata

This aligns the items with the built-in mechanism in nuget for providing content items, and enables reliable detection of these items in consuming projects.

Fixes #3108
  • Loading branch information
kzu authored Feb 21, 2025
1 parent 390f50e commit 9d532f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Playwright/build/Microsoft.Playwright.targets
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,15 @@
</ItemGroup>
<ItemGroup>
<Content Include="@(_PlaywrightCopyItems)">
<NuGetPackageId>Microsoft.Playwright</NuGetPackageId>
<Link>.playwright\%(_PlaywrightCopyItems.PlaywrightFolder)%(RecursiveDir)%(FileName)%(Extension)</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<PublishState>Included</PublishState>
<Visible>false</Visible>
<Pack>false</Pack>
</Content>
<Content Include="$(MSBuildThisFileDirectory)playwright.ps1">
<NuGetPackageId>Microsoft.Playwright</NuGetPackageId>
<Link>playwright.ps1</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<PublishState>Included</PublishState>
Expand Down

0 comments on commit 9d532f6

Please sign in to comment.