Introduce explicity typeforwards to internal types that are needed by WinRT
authorAlex Ghiondea <ghiondea.alexandru@microsoft.com>
Tue, 7 Jun 2016 00:31:43 +0000 (17:31 -0700)
committerAlex Ghiondea <ghiondea.alexandru@microsoft.com>
Tue, 7 Jun 2016 00:31:43 +0000 (17:31 -0700)
GenFacades does not correcty create the type forwards for internal types even if there are internalsvisibleto attributes setup.

[tfs-changeset: 1610866]

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

src/coreclr/src/mscorlib/facade/TypeForwards.cs [new file with mode: 0644]
src/coreclr/src/mscorlib/facade/mscorlib.csproj
src/coreclr/src/mscorlib/ref/mscorlib.cs

diff --git a/src/coreclr/src/mscorlib/facade/TypeForwards.cs b/src/coreclr/src/mscorlib/facade/TypeForwards.cs
new file mode 100644 (file)
index 0000000..ee75b85
--- /dev/null
@@ -0,0 +1,39 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+using System.Runtime.CompilerServices;
+
+#if FEATURE_COMINTEROP
+[assembly: TypeForwardedTo(typeof(System.Threading.WinRTSynchronizationContextFactoryBase))]
+[assembly: TypeForwardedTo(typeof(System.Resources.WindowsRuntimeResourceManagerBase))]
+[assembly: TypeForwardedTo(typeof(System.Resources.PRIExceptionInfo))]
+[assembly: TypeForwardedTo(typeof(System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeImportAttribute))]
+[assembly: TypeForwardedTo(typeof(System.Runtime.InteropServices.WindowsRuntime.IRestrictedErrorInfo))]
+[assembly: TypeForwardedTo(typeof(System.Runtime.CompilerServices.FriendAccessAllowedAttribute))]
+[assembly: TypeForwardedTo(typeof(System.Globalization.CultureTypes))]
+[assembly: TypeForwardedTo(typeof(System.StubHelpers.EventArgsMarshaler))]
+[assembly: TypeForwardedTo(typeof(System.StubHelpers.InterfaceMarshaler))]
+#endif
+
+[assembly: TypeForwardedTo(typeof(System.Diagnostics.Tracing.FrameworkEventSource))]
+[assembly: TypeForwardedTo(typeof(System.Globalization.CultureData))]
+[assembly: TypeForwardedTo(typeof(System.Globalization.CalendarData))]
+[assembly: TypeForwardedTo(typeof(System.IO.BufferedStream))]
+[assembly: TypeForwardedTo(typeof(System.Runtime.CompilerServices.JitHelpers))]
+[assembly: TypeForwardedTo(typeof(System.Runtime.CompilerServices.ObjectHandleOnStack))]
+[assembly: TypeForwardedTo(typeof(System.Runtime.CompilerServices.PinningHelper))]
+[assembly: TypeForwardedTo(typeof(System.Runtime.CompilerServices.StackCrawlMarkHandle))]
+[assembly: TypeForwardedTo(typeof(System.Runtime.CompilerServices.StringHandleOnStack))]
+[assembly: TypeForwardedTo(typeof(System.Runtime.CompilerServices.FriendAccessAllowedAttribute))]
+[assembly: TypeForwardedTo(typeof(System.StubHelpers.StubHelpers))]
+[assembly: TypeForwardedTo(typeof(System.StubHelpers.CleanupWorkList))]
+[assembly: TypeForwardedTo(typeof(System.StubHelpers.CleanupWorkListElement))]
+[assembly: TypeForwardedTo(typeof(System.Threading.StackCrawlMark))]
+[assembly: TypeForwardedTo(typeof(System.Threading.Tasks.AsyncCausalityStatus))]
+[assembly: TypeForwardedTo(typeof(System.Threading.Tasks.CausalityRelation))]
+[assembly: TypeForwardedTo(typeof(System.Threading.Tasks.CausalitySynchronousWork))]
+[assembly: TypeForwardedTo(typeof(System.Threading.Tasks.AsyncCausalityTracer))]
+[assembly: TypeForwardedTo(typeof(System.Threading.Tasks.CausalityTraceLevel))]
+
+
index d163967..0aa7053 100644 (file)
   <ItemGroup>
     <ProjectReference Include="..\System.Private.CoreLib.csproj" />
   </ItemGroup>
+  
+  <ItemGroup>
+    <Compile Include="TypeForwards.cs" />
+  </ItemGroup>
 
   <ItemGroup>
     <None Include="project.json" />
index 2522241..d0615e2 100644 (file)
@@ -1,3 +1,7 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
 [assembly:System.Runtime.CompilerServices.InternalsVisibleTo("System.Runtime.WindowsRuntime, PublicKey=00000000000000000400000000000000")]
 
 namespace Microsoft.Win32.SafeHandles