diff --git a/eng/testing/tests.readytorun.targets b/eng/testing/tests.readytorun.targets
new file mode 100644
index 00000000000000..82fde4e2cb4897
--- /dev/null
+++ b/eng/testing/tests.readytorun.targets
@@ -0,0 +1,17 @@
+
+
+
+
+ $([MSBuild]::NormalizePath('$(Crossgen2InBuildDir)', 'crossgen2$(ExeSuffix)'))
+ <_CrossGenTargetOS Condition="'$(TargetsAndroid)' != 'true'">$(TargetOS)
+ <_CrossGenTargetOS Condition="'$(TargetsAndroid)' == 'true'">linux
+
+
+
+
+
+
+
diff --git a/eng/testing/tests.singlefile.targets b/eng/testing/tests.singlefile.targets
index 26895f9c10eab2..6a50cbbfbf55a8 100644
--- a/eng/testing/tests.singlefile.targets
+++ b/eng/testing/tests.singlefile.targets
@@ -19,6 +19,7 @@
true
false
+ $(AfterMicrosoftNETSdkTargets);$(MSBuildThisFileDirectory)tests.readytorun.targets
@@ -92,7 +93,13 @@
<_BundleAssembliesToCopy Include="$(ArtifactsNetCoreAppBundlePath)*.dll" />
-
+
+
+
+ <_BundleAssembliesToCopy Remove="@(ResolvedFileToPublish->WithMetadataValue('CopyLocal','true'))" MatchOnMetadata="Filename;Extension" />
@@ -160,28 +167,6 @@
-
-
-
-
-
-
-
-
-
-
-
assem
// loaded in the default ALC, which causes problems for this test.
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsAssemblyLoadingSupported), nameof(PlatformDetection.IsNotMobile))]
[ActiveIssue("34072", TestRuntimes.Mono)]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/95928", typeof(PlatformDetection), nameof(PlatformDetection.IsReadyToRunCompiled))]
public static void TypeDescriptor_WithDefaultProvider_UnloadsUnloadableTypes()
{
ExecuteAndUnload("UnloadableTestTypes.dll",
diff --git a/src/libraries/System.Private.Xml/tests/XmlSerializer/XmlSerializerTests.cs b/src/libraries/System.Private.Xml/tests/XmlSerializer/XmlSerializerTests.cs
index 9df315cac1a6d3..a7cbbaf1cf7d90 100644
--- a/src/libraries/System.Private.Xml/tests/XmlSerializer/XmlSerializerTests.cs
+++ b/src/libraries/System.Private.Xml/tests/XmlSerializer/XmlSerializerTests.cs
@@ -2568,6 +2568,7 @@ public static void Xml_TypeWithSpecialCharacterInStringMember()
[SkipOnPlatform(TestPlatforms.Browser, "AssemblyDependencyResolver not supported in wasm")]
#endif
[ActiveIssue("https://github.com/dotnet/runtime/issues/34072", TestRuntimes.Mono)]
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/95928", typeof(PlatformDetection), nameof(PlatformDetection.IsReadyToRunCompiled))]
public static void Xml_TypeInCollectibleALC()
{
ExecuteAndUnload("SerializableAssembly.dll", "SerializationTypes.SimpleType", out var weakRef);