diff --git a/build-tools/mono-runtimes/ProfileAssemblies.projitems b/build-tools/mono-runtimes/ProfileAssemblies.projitems
index 9c43186c7..1b7740d47 100644
--- a/build-tools/mono-runtimes/ProfileAssemblies.projitems
+++ b/build-tools/mono-runtimes/ProfileAssemblies.projitems
@@ -192,6 +192,10 @@
corlib
+
+ corlib
+ xunit
+
I18N/CJK
@@ -237,6 +241,10 @@
System.Numerics
+
+ System.Numerics
+ xunit
+
System.Runtime.Serialization
diff --git a/build-tools/mono-runtimes/mono-runtimes.targets b/build-tools/mono-runtimes/mono-runtimes.targets
index 262ec0d58..2f71cd265 100644
--- a/build-tools/mono-runtimes/mono-runtimes.targets
+++ b/build-tools/mono-runtimes/mono-runtimes.targets
@@ -310,6 +310,11 @@
IgnoreStandardErrorWarningFormat="True"
WorkingDirectory="$(IntermediateOutputPath)\%(_MonoRuntime.Identity)\runtime"
/>
+
+
+
+ <_NUnitAssembly
+ Condition=" '%(MonoTestAssembly.TestType)' != 'xunit' "
+ Include="@(MonoTestAssembly)"
+ />
+
+
-
+
+ DependsOnTargets="_GetNUnitAssemblies"
+ Inputs="@(_NUnitAssembly->'..\..\bin\$(Configuration)\bcl-tests\%(Identity)')"
+ Outputs="@(_NUnitAssembly->'$(IntermediateOutputPath)%(Identity)')">
- <_Source Include="@(MonoTestAssembly->'..\..\bin\$(Configuration)\bcl-tests\%(Identity)')" />
+ <_Source Include="@(_NUnitAssembly->'..\..\bin\$(Configuration)\bcl-tests\%(Identity)')" />
- <_Assemblies>@(MonoTestAssembly->'"%(Identity)"', ', ')
+ <_Assemblies>@(_NUnitAssembly->'"%(Identity)"', ', ')