Add reflection roots for tests calling CreateInstance() (dotnet/coreclr#10242)
authorSwaroop Sridhar <Swaroop.Sridhar@microsoft.com>
Fri, 17 Mar 2017 18:22:18 +0000 (11:22 -0700)
committerGitHub <noreply@github.com>
Fri, 17 Mar 2017 18:22:18 +0000 (11:22 -0700)
Add the XML files identifying the reflection roots to keep the
type (and constructors threof) which are used by tests as
Activator.CreateInstance(typeof(T))

Commit migrated from https://github.com/dotnet/coreclr/commit/d1bdbf1bee3ecdbcd96a5a78a45bf097e3a38951

32 files changed:
src/coreclr/tests/src/JIT/Regression/CLR-x86-JIT/V2.0-Beta2/b399444/b399444a.csproj
src/coreclr/tests/src/JIT/Regression/CLR-x86-JIT/V2.0-Beta2/b399444/b399444a.reflect.xml [new file with mode: 0644]
src/coreclr/tests/src/JIT/Regression/CLR-x86-JIT/V2.0-Beta2/b399444/b399444b.csproj
src/coreclr/tests/src/JIT/Regression/CLR-x86-JIT/V2.0-Beta2/b399444/b399444b.reflect.xml [new file with mode: 0644]
src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/CastClass001.csproj
src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/CastClass001.reflect.xml [new file with mode: 0644]
src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/CastClass004.csproj
src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/CastClass004.reflect.xml [new file with mode: 0644]
src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/IsInst001.csproj
src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/IsInst001.reflect.xml [new file with mode: 0644]
src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/IsInst002.csproj
src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/IsInst002.reflect.xml [new file with mode: 0644]
src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/IsInst003.csproj
src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/IsInst003.reflect.xml [new file with mode: 0644]
src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/IsInst004.csproj
src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/IsInst004.reflect.xml [new file with mode: 0644]
src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/IsInst005.csproj
src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/IsInst005.reflect.xml [new file with mode: 0644]
src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/IsInst006.csproj
src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/IsInst006.reflect.xml [new file with mode: 0644]
src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/Unbox001.csproj
src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/Unbox001.reflect.xml [new file with mode: 0644]
src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/Unbox002.csproj
src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/Unbox002.reflect.xml [new file with mode: 0644]
src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/Unbox003.csproj
src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/Unbox003.reflect.xml [new file with mode: 0644]
src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/Unbox004.csproj
src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/Unbox004.reflect.xml [new file with mode: 0644]
src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/Unbox005.csproj
src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/Unbox005.reflect.xml [new file with mode: 0644]
src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/Unbox006.csproj
src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/Unbox006.reflect.xml [new file with mode: 0644]

index 2c3549e..4140128 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="12.0" DefaultTargets="Build;CopyReflectionRoots" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
   <PropertyGroup>
     <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
diff --git a/src/coreclr/tests/src/JIT/Regression/CLR-x86-JIT/V2.0-Beta2/b399444/b399444a.reflect.xml b/src/coreclr/tests/src/JIT/Regression/CLR-x86-JIT/V2.0-Beta2/b399444/b399444a.reflect.xml
new file mode 100644 (file)
index 0000000..7cb18da
--- /dev/null
@@ -0,0 +1,5 @@
+<linker>
+    <assembly fullname="b399444a">
+        <type fullname="*" required="true" />
+    </assembly>
+</linker>
index ac412bc..1df1268 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="12.0" DefaultTargets="Build;CopyReflectionRoots" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
   <PropertyGroup>
     <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
diff --git a/src/coreclr/tests/src/JIT/Regression/CLR-x86-JIT/V2.0-Beta2/b399444/b399444b.reflect.xml b/src/coreclr/tests/src/JIT/Regression/CLR-x86-JIT/V2.0-Beta2/b399444/b399444b.reflect.xml
new file mode 100644 (file)
index 0000000..5999dda
--- /dev/null
@@ -0,0 +1,5 @@
+<linker>
+    <assembly fullname="b399444b">
+        <type fullname="*" required="true" />
+    </assembly>
+</linker>
index 909d8bd..ee21fe5 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="12.0" DefaultTargets="Build;CopyReflectionRoots" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
   <PropertyGroup>
     <AssemblyName>CastClass001</AssemblyName>
diff --git a/src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/CastClass001.reflect.xml b/src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/CastClass001.reflect.xml
new file mode 100644 (file)
index 0000000..077ab03
--- /dev/null
@@ -0,0 +1,5 @@
+<linker>
+    <assembly fullname="CastClass001">
+        <type fullname="*" required="true" />
+    </assembly>
+</linker>
index c2d1b63..99314c9 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="12.0" DefaultTargets="Build;CopyReflectionRoots" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
   <PropertyGroup>
     <AssemblyName>CastClass004</AssemblyName>
diff --git a/src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/CastClass004.reflect.xml b/src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/CastClass004.reflect.xml
new file mode 100644 (file)
index 0000000..1f2f4d3
--- /dev/null
@@ -0,0 +1,5 @@
+<linker>
+    <assembly fullname="CastClass004">
+        <type fullname="*" required="true" />
+    </assembly>
+</linker>
index 2e6142f..80c3539 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="12.0" DefaultTargets="Build;CopyReflectionRoots" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
   <PropertyGroup>
     <AssemblyName>IsInst001</AssemblyName>
diff --git a/src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/IsInst001.reflect.xml b/src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/IsInst001.reflect.xml
new file mode 100644 (file)
index 0000000..d75d6a2
--- /dev/null
@@ -0,0 +1,5 @@
+<linker>
+    <assembly fullname="IsInst001">
+        <type fullname="*" required="true" />
+    </assembly>
+</linker>
index 2187db2..f1e0b98 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="12.0" DefaultTargets="Build;CopyReflectionRoots" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
   <PropertyGroup>
     <AssemblyName>IsInst002</AssemblyName>
diff --git a/src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/IsInst002.reflect.xml b/src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/IsInst002.reflect.xml
new file mode 100644 (file)
index 0000000..162ca63
--- /dev/null
@@ -0,0 +1,5 @@
+<linker>
+    <assembly fullname="IsInst002">
+        <type fullname="*" required="true" />
+    </assembly>
+</linker>
index 25cd8e3..b6033cc 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="12.0" DefaultTargets="Build;CopyReflectionRoots" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
   <PropertyGroup>
     <AssemblyName>IsInst003</AssemblyName>
diff --git a/src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/IsInst003.reflect.xml b/src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/IsInst003.reflect.xml
new file mode 100644 (file)
index 0000000..7e4c7b6
--- /dev/null
@@ -0,0 +1,5 @@
+<linker>
+    <assembly fullname="IsInst003">
+        <type fullname="*" required="true" />
+    </assembly>
+</linker>
index 739cf4e..7b46044 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="12.0" DefaultTargets="Build;CopyReflectionRoots" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
   <PropertyGroup>
     <AssemblyName>IsInst004</AssemblyName>
diff --git a/src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/IsInst004.reflect.xml b/src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/IsInst004.reflect.xml
new file mode 100644 (file)
index 0000000..09a841f
--- /dev/null
@@ -0,0 +1,5 @@
+<linker>
+    <assembly fullname="IsInst004">
+        <type fullname="*" required="true" />
+    </assembly>
+</linker>
index 46bad46..cdaf512 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="12.0" DefaultTargets="Build;CopyReflectionRoots" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
   <PropertyGroup>
     <AssemblyName>IsInst005</AssemblyName>
diff --git a/src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/IsInst005.reflect.xml b/src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/IsInst005.reflect.xml
new file mode 100644 (file)
index 0000000..dd98bf8
--- /dev/null
@@ -0,0 +1,5 @@
+<linker>
+    <assembly fullname="IsInst005">
+        <type fullname="*" required="true" />
+    </assembly>
+</linker>
index 195207c..0ac5ec8 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="12.0" DefaultTargets="Build;CopyReflectionRoots" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
   <PropertyGroup>
     <AssemblyName>IsInst006</AssemblyName>
diff --git a/src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/IsInst006.reflect.xml b/src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/IsInst006.reflect.xml
new file mode 100644 (file)
index 0000000..8e2fc04
--- /dev/null
@@ -0,0 +1,5 @@
+<linker>
+    <assembly fullname="IsInst006">
+        <type fullname="*" required="true" />
+    </assembly>
+</linker>
index 268be47..a1eecd5 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="12.0" DefaultTargets="Build;CopyReflectionRoots" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
   <PropertyGroup>
     <AssemblyName>Unbox001</AssemblyName>
diff --git a/src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/Unbox001.reflect.xml b/src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/Unbox001.reflect.xml
new file mode 100644 (file)
index 0000000..3572bdc
--- /dev/null
@@ -0,0 +1,5 @@
+<linker>
+    <assembly fullname="Unbox001">
+        <type fullname="*" required="true" />
+    </assembly>
+</linker>
index 2e63181..801190b 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="12.0" DefaultTargets="Build;CopyReflectionRoots" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
   <PropertyGroup>
     <AssemblyName>Unbox002</AssemblyName>
diff --git a/src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/Unbox002.reflect.xml b/src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/Unbox002.reflect.xml
new file mode 100644 (file)
index 0000000..8c60748
--- /dev/null
@@ -0,0 +1,5 @@
+<linker>
+    <assembly fullname="Unbox002">
+        <type fullname="*" required="true" />
+    </assembly>
+</linker>
index 6e33688..8dee0ca 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="12.0" DefaultTargets="Build;CopyReflectionRoots" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
   <PropertyGroup>
     <AssemblyName>Unbox003</AssemblyName>
diff --git a/src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/Unbox003.reflect.xml b/src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/Unbox003.reflect.xml
new file mode 100644 (file)
index 0000000..b70f20a
--- /dev/null
@@ -0,0 +1,5 @@
+<linker>
+    <assembly fullname="Unbox003">
+        <type fullname="*" required="true" />
+    </assembly>
+</linker>
index 06528af..3e2764b 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="12.0" DefaultTargets="Build;CopyReflectionRoots" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
   <PropertyGroup>
     <AssemblyName>Unbox004</AssemblyName>
diff --git a/src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/Unbox004.reflect.xml b/src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/Unbox004.reflect.xml
new file mode 100644 (file)
index 0000000..d97a8d0
--- /dev/null
@@ -0,0 +1,5 @@
+<linker>
+    <assembly fullname="Unbox004">
+        <type fullname="*" required="true" />
+    </assembly>
+</linker>
index b69977d..5cfe764 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="12.0" DefaultTargets="Build;CopyReflectionRoots" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
   <PropertyGroup>
     <AssemblyName>Unbox005</AssemblyName>
diff --git a/src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/Unbox005.reflect.xml b/src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/Unbox005.reflect.xml
new file mode 100644 (file)
index 0000000..9810fa4
--- /dev/null
@@ -0,0 +1,5 @@
+<linker>
+    <assembly fullname="Unbox005">
+        <type fullname="*" required="true" />
+    </assembly>
+</linker>
index c0f00a0..4ad5819 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+<Project ToolsVersion="12.0" DefaultTargets="Build;CopyReflectionRoots" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
   <PropertyGroup>
     <AssemblyName>Unbox006</AssemblyName>
diff --git a/src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/Unbox006.reflect.xml b/src/coreclr/tests/src/Loader/classloader/generics/Variance/IL/Unbox006.reflect.xml
new file mode 100644 (file)
index 0000000..51a1ca7
--- /dev/null
@@ -0,0 +1,5 @@
+<linker>
+    <assembly fullname="Unbox006">
+        <type fullname="*" required="true" />
+    </assembly>
+</linker>