summaryrefslogtreecommitdiff
path: root/src/mscorlib/facade
diff options
context:
space:
mode:
authorJiyoung Yun <jy910.yun@samsung.com>2016-11-23 10:09:09 (GMT)
committerJiyoung Yun <jy910.yun@samsung.com>2016-11-23 10:09:09 (GMT)
commit4b4aad7217d3292650e77eec2cf4c198ea9c3b4b (patch)
tree98110734c91668dfdbb126fcc0e15ddbd93738ca /src/mscorlib/facade
parentfa45f57ed55137c75ac870356a1b8f76c84b229c (diff)
downloadcoreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.zip
coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.tar.gz
coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.tar.bz2
Imported Upstream version 1.1.0upstream/1.1.0
Diffstat (limited to 'src/mscorlib/facade')
-rw-r--r--src/mscorlib/facade/TypeForwards.cs37
-rw-r--r--src/mscorlib/facade/mscorlib.csproj102
-rw-r--r--src/mscorlib/facade/project.json14
3 files changed, 153 insertions, 0 deletions
diff --git a/src/mscorlib/facade/TypeForwards.cs b/src/mscorlib/facade/TypeForwards.cs
new file mode 100644
index 0000000..ba78711
--- /dev/null
+++ b/src/mscorlib/facade/TypeForwards.cs
@@ -0,0 +1,37 @@
+// 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 WINDOWS_TYPEFORWARDS
+[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.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))]
+
+
diff --git a/src/mscorlib/facade/mscorlib.csproj b/src/mscorlib/facade/mscorlib.csproj
new file mode 100644
index 0000000..c3a165d
--- /dev/null
+++ b/src/mscorlib/facade/mscorlib.csproj
@@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
+
+ <PropertyGroup>
+ <AssemblyName>mscorlib</AssemblyName>
+ <ProjectGuid>{263342A6-FC48-4CFC-B16A-2AF964D3536C}</ProjectGuid>
+ <ClsCompliant>true</ClsCompliant>
+ <AssemblyVersion>4.0.0.0</AssemblyVersion>
+ <IsPartialFacadeAssembly>true</IsPartialFacadeAssembly>
+ <OutputType>Library</OutputType>
+ <ExcludeMscorlibFacade>true</ExcludeMscorlibFacade>
+
+ <!-- This prevents the default MsBuild targets from referencing System.Core.dll -->
+ <AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
+ <!-- These prevent the default MsBuild targets from referencing System.dll and mscorlib.dll -->
+ <NoStdLib>true</NoStdLib>
+ <NoCompilerStandardLib>true</NoCompilerStandardLib>
+
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <AvailablePlatforms>amd64,x86,arm,arm-softfp,arm64</AvailablePlatforms>
+ <Configuration Condition=" '$(Configuration)' == '' ">$(BuildType)</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">$(BuildArch)</Platform>
+ <!-- The CLR properties use amd64 as their platform string, we want to keep in sync with those, so set Platform appropriately,
+ though still use the 'x64' output path (see use of BuildArch below) -->
+ <Platform Condition=" '$(Platform)' == 'x64' ">amd64</Platform>
+ <Platform Condition=" '$(Platform)' == 'arm-softfp' ">arm</Platform>
+
+ <!-- We want to exclude the transitive closure of the packages pulled in via project.json as that introduces ambiguity -->
+ <OmitTransitiveCompileReferences>true</OmitTransitiveCompileReferences>
+ <NuGetTargetMoniker>.NETStandard,Version=v1.3</NuGetTargetMoniker>
+ </PropertyGroup>
+
+ <!-- Default configurations to help VS understand the options -->
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcore50_Debug|AnyCPU'" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcore50_Release|AnyCPU'" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcore50aot_Debug|AnyCPU'" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcore50aot_Release|AnyCPU'" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'net462_Debug|AnyCPU'" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'net462_Release|AnyCPU'" />
+
+ <!-- Roslyn does not support writing PDBs on Unix -->
+ <PropertyGroup Condition="'$(OsEnvironment)' == 'Unix'">
+ <DebugSymbols>false</DebugSymbols>
+ <DebugType>none</DebugType>
+ </PropertyGroup>
+
+ <!-- Some of the type forwards should only be build when targeting Windows. -->
+ <PropertyGroup>
+ <DefineConstants Condition="'$(TargetsWindows)'=='true'">$(DefineConstants);WINDOWS_TYPEFORWARDS</DefineConstants>
+ </PropertyGroup>
+
+ <!-- Output paths -->
+ <PropertyGroup>
+ <BaseIntermediateOutputPath>$(RootBinDir)\obj</BaseIntermediateOutputPath>
+ <!-- Note the trailing '\\' - they are needed so that genfacade does not fail due to an invalid path
+ In particular, the facadepath is sent in quotes.
+ And the IntermediateOutputPath is required to end in a '\' in the coreclr repo. This means that the
+ facadepath ends up being sent as 'mypath\"' and that trips the Path normalization.
+ Introducing a second '\' tricks the normalization logic to treat this '\\"' as '\"' and not complain. -->
+ <IntermediateOutputPath>$(BaseIntermediateOutputPath)\$(BuildOS).$(BuildArch).$(Configuration)\facade\\</IntermediateOutputPath>
+ <OutputPath>$(BinDir)\facade</OutputPath>
+ </PropertyGroup>
+
+ <ItemGroup>
+ <ProjectReference Include="..\System.Private.CoreLib.csproj" />
+ </ItemGroup>
+
+ <ItemGroup>
+ <Compile Include="TypeForwards.cs" />
+ </ItemGroup>
+
+ <ItemGroup>
+ <None Include="project.json" />
+ </ItemGroup>
+
+ <PropertyGroup>
+ <StrongNameSig>Silverlight</StrongNameSig>
+ </PropertyGroup>
+
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
+
+ <PropertyGroup>
+ <!-- Overwrite the key that we are going to use for signing -->
+ <AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)..\Tools\Signing\mscorlib.snk</AssemblyOriginatorKeyFile>
+ </PropertyGroup>
+
+ <!-- the signing marker file is incorrectly named mscorlib.dll.requires_signing -->
+ <Target Name="RenameSigningMarker" AfterTargets="WriteSigningRequired" Condition="Exists('$(TargetPath).requires_signing')">
+ <Move SourceFiles="$(TargetPath).requires_signing" DestinationFiles="$(OutputPath)\System.Private.CoreLib.dll.requires_signing" />
+ </Target>
+
+ <ItemGroup>
+ <SeedTypePreference Include="System.Console">
+ <Assembly>System.Console</Assembly>
+ </SeedTypePreference>
+ </ItemGroup>
+
+</Project>
diff --git a/src/mscorlib/facade/project.json b/src/mscorlib/facade/project.json
new file mode 100644
index 0000000..485086e
--- /dev/null
+++ b/src/mscorlib/facade/project.json
@@ -0,0 +1,14 @@
+{
+ "dependencies": {
+ "System.Console": "4.0.0",
+ "System.Security.Cryptography.Primitives": "4.0.0",
+ "System.Security.Claims": "4.0.0",
+ },
+ "frameworks": {
+ "netstandard1.3": {
+ "imports": [
+ "dotnet5.4"
+ ]
+ }
+ }
+} \ No newline at end of file