diff --git a/src/Adapter/MSTest.TestAdapter/buildTransitive/uwp/MSTest.TestAdapter.targets b/src/Adapter/MSTest.TestAdapter/buildTransitive/uwp/MSTest.TestAdapter.targets
index b9ed21dea9..43c72878d3 100644
--- a/src/Adapter/MSTest.TestAdapter/buildTransitive/uwp/MSTest.TestAdapter.targets
+++ b/src/Adapter/MSTest.TestAdapter/buildTransitive/uwp/MSTest.TestAdapter.targets
@@ -38,13 +38,30 @@
+
+ <_MSTestV2Files Include="$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)..\_localization'))\**\*.dll" />
+
+ <_MSTestV2Files Update="@(_MSTestV2Files)">
+ %(RecursiveDir)
+ $([System.String]::Copy('%(RecursiveDir)').TrimEnd('\').TrimEnd('/').ToLowerInvariant())
+
+
+
+
-
+
@@ -57,11 +74,14 @@
This is populated here (rather than inside CopyMSTestV2Resources) so the item group is available when the
Inputs/Outputs of CopyMSTestV2Resources are evaluated for incremental build.
-->
-
+
<_MSTestV2Files Include="$(MSBuildThisFileDirectory)..\_localization\%(CurrentUICultureHierarchy.Identity)\*.dll">
%(CurrentUICultureHierarchy.Identity)
$([System.String]::Copy('%(CurrentUICultureHierarchy.Identity)').ToLowerInvariant())
+
+
+
diff --git a/test/IntegrationTests/MSTest.Acceptance.IntegrationTests/SdkTests.cs b/test/IntegrationTests/MSTest.Acceptance.IntegrationTests/SdkTests.cs
index cf7a6230b2..a36b45f2f7 100644
--- a/test/IntegrationTests/MSTest.Acceptance.IntegrationTests/SdkTests.cs
+++ b/test/IntegrationTests/MSTest.Acceptance.IntegrationTests/SdkTests.cs
@@ -235,6 +235,47 @@ public async Task SatelliteResourceLanguages_FiltersClassicUwpAdapterResources(s
result.AssertOutputContains($"SatelliteCultures=[{expectedCultures}]");
}
+ [TestMethod]
+ [OSCondition(OperatingSystems.Windows, IgnoreMessage = "Classic UWP package assets are produced only on Windows.")]
+ public async Task SatelliteResourceLanguages_FiltersClassicUwpMtpAdapterResources()
+ {
+ const string Source = """
+ #file ClassicUwpMtpSatelliteResources.csproj
+
+
+ $TargetFramework$
+ true
+ fr;ja
+
+
+
+
+
+
+
+
+
+
+
+
+ """;
+
+ using TestAsset testAsset = await TestAsset.GenerateAssetAsync(
+ $"{AssetName}ClassicUwpMtpSatellites",
+ Source
+ .PatchCodeWithReplace("$MSTestVersion$", MSTestVersion)
+ .PatchCodeWithReplace("$TargetFramework$", TargetFrameworks.NetCurrent));
+
+ DotnetMuxerResult result = await DotnetCli.RunAsync(
+ $"msbuild {testAsset.TargetAssetPath} -restore -t:PrintSatelliteCultures",
+ environmentVariables: new() { ["DOTNET_CLI_UI_LANGUAGE"] = "de" },
+ cancellationToken: TestContext.CancellationToken);
+
+ result.AssertExitCodeIs(0);
+ result.AssertOutputContains("SatelliteCultures=[fr;fr;ja;ja]");
+ }
+
[TestMethod]
[DynamicData(nameof(GetBuildMatrixMultiTfmFoldedBuildConfiguration), typeof(AcceptanceTestBase))]
public async Task RunTests_With_CentralPackageManagement_Standalone(string multiTfm, BuildConfiguration buildConfiguration)