diff --git a/Directory.Build.targets b/Directory.Build.targets index d079454d8d..c3a33c3ba3 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -64,4 +64,22 @@ + + + + + <_AspireHostingTestingPackageVersion>@(PackageVersion->WithMetadataValue('Identity', 'Aspire.Hosting.Testing')->'%(Version)') + <_MicrosoftPlaywrightPackageVersion>@(PackageVersion->WithMetadataValue('Identity', 'Microsoft.Playwright.MSTest.v4')->'%(Version)') + + + + diff --git a/Directory.Packages.props b/Directory.Packages.props index e211c40dc3..a7b98f913b 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -164,24 +164,12 @@ template (see MSTest.Sdk.csproj). The two cannot be unified because the consuming property must be a plain scalar (an item transform such as @(PackageVersion->...) stored in a property is not expanded and breaks string concatenation, e.g. MSB4012), while Dependabot needs the literal on - the PackageVersion. The _ValidateBundledSdkFeatureVersions target below fails the build if the - property and the PackageVersion ever drift apart (e.g. after Dependabot bumps only the - PackageVersion), so the duplication can never ship out of sync. + the PackageVersion. The _ValidateBundledSdkFeatureVersions target (in Directory.Build.targets) + fails the build if the property and the PackageVersion ever drift apart (e.g. after Dependabot + bumps only the PackageVersion), so the duplication can never ship out of sync. --> - - - <_AspireHostingTestingPackageVersion>@(PackageVersion->WithMetadataValue('Identity', 'Aspire.Hosting.Testing')->'%(Version)') - <_MicrosoftPlaywrightPackageVersion>@(PackageVersion->WithMetadataValue('Identity', 'Microsoft.Playwright.MSTest.v4')->'%(Version)') - - - - diff --git a/src/Adapter/MSTest.TestAdapter/buildTransitive/common/MSTest.TestAdapter.targets b/src/Adapter/MSTest.TestAdapter/buildTransitive/common/MSTest.TestAdapter.targets index e524698986..04cfa32158 100644 --- a/src/Adapter/MSTest.TestAdapter/buildTransitive/common/MSTest.TestAdapter.targets +++ b/src/Adapter/MSTest.TestAdapter/buildTransitive/common/MSTest.TestAdapter.targets @@ -46,7 +46,7 @@ Rooting - +