diff --git a/src/libraries/System.Runtime/tests/System/Attributes.cs b/src/libraries/System.Runtime/tests/System/Attributes.cs
index 00c7997c5f6d4b..d0b474f3110821 100644
--- a/src/libraries/System.Runtime/tests/System/Attributes.cs
+++ b/src/libraries/System.Runtime/tests/System/Attributes.cs
@@ -221,7 +221,7 @@ public static void GetCustomAttributes_Interface()
Assert.True(typeof(ExampleWithAttribute).GetCustomAttributes(typeof(INameable), inherit: false)[0] is NameableAttribute);
}
- [Fact]
+ [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]
[SkipOnMono("Mono does not support getting DynamicMethod attributes via Attribute.GetCustomAttributes()")]
public static void GetCustomAttributes_DynamicMethod()
{
diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj
index 344e383b58cf84..0d462339b390c7 100644
--- a/src/libraries/tests.proj
+++ b/src/libraries/tests.proj
@@ -382,6 +382,7 @@
+