1 <?xml version="1.0" encoding="utf-8"?>
2 <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
3 <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
6 <AssemblyName>mscorlib</AssemblyName>
7 <ProjectGuid>{263342A6-FC48-4CFC-B16A-2AF964D3536C}</ProjectGuid>
8 <ClsCompliant>true</ClsCompliant>
9 <AssemblyVersion>4.0.0.0</AssemblyVersion>
10 <IsPartialFacadeAssembly>true</IsPartialFacadeAssembly>
11 <OutputType>Library</OutputType>
12 <ExcludeMscorlibFacade>true</ExcludeMscorlibFacade>
14 <!-- This prevents the default MsBuild targets from referencing System.Core.dll -->
15 <AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
16 <!-- These prevent the default MsBuild targets from referencing System.dll and mscorlib.dll -->
17 <NoStdLib>true</NoStdLib>
18 <NoCompilerStandardLib>true</NoCompilerStandardLib>
20 <DebugSymbols>true</DebugSymbols>
21 <DebugType>full</DebugType>
22 <AvailablePlatforms>amd64,x86,arm,arm-softfp,arm64</AvailablePlatforms>
23 <Configuration Condition=" '$(Configuration)' == '' ">$(BuildType)</Configuration>
24 <Platform Condition=" '$(Platform)' == '' ">$(BuildArch)</Platform>
25 <!-- The CLR properties use amd64 as their platform string, we want to keep in sync with those, so set Platform appropriately,
26 though still use the 'x64' output path (see use of BuildArch below) -->
27 <Platform Condition=" '$(Platform)' == 'x64' ">amd64</Platform>
28 <Platform Condition=" '$(Platform)' == 'arm-softfp' ">arm</Platform>
30 <!-- We want to exclude the transitive closure of the packages pulled in via project.json as that introduces ambiguity -->
31 <OmitTransitiveCompileReferences>true</OmitTransitiveCompileReferences>
34 <!-- Default configurations to help VS understand the options -->
35 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'" />
36 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'" />
37 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcore50_Debug|AnyCPU'" />
38 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcore50_Release|AnyCPU'" />
39 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcore50aot_Debug|AnyCPU'" />
40 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcore50aot_Release|AnyCPU'" />
41 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'net462_Debug|AnyCPU'" />
42 <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'net462_Release|AnyCPU'" />
44 <!-- Roslyn does not support writing PDBs on Unix -->
45 <PropertyGroup Condition="'$(OsEnvironment)' == 'Unix'">
46 <DebugSymbols>false</DebugSymbols>
47 <DebugType>none</DebugType>
50 <!-- Some of the type forwards should only be build when targeting Windows. -->
52 <DefineConstants Condition="'$(TargetsWindows)'=='true'">$(DefineConstants);WINDOWS_TYPEFORWARDS</DefineConstants>
57 <BaseIntermediateOutputPath>$(RootBinDir)\obj</BaseIntermediateOutputPath>
58 <!-- Note the trailing '\\' - they are needed so that genfacade does not fail due to an invalid path
59 In particular, the facadepath is sent in quotes.
60 And the IntermediateOutputPath is required to end in a '\' in the coreclr repo. This means that the
61 facadepath ends up being sent as 'mypath\"' and that trips the Path normalization.
62 Introducing a second '\' tricks the normalization logic to treat this '\\"' as '\"' and not complain. -->
63 <IntermediateOutputPath>$(BaseIntermediateOutputPath)\$(BuildOS).$(BuildArch).$(Configuration)\facade\\</IntermediateOutputPath>
64 <OutputPath>$(BinDir)\facade</OutputPath>
68 <ProjectReference Include="..\System.Private.CoreLib.csproj" />
72 <Compile Include="TypeForwards.cs" />
76 <None Include="project.json" />
80 <StrongNameSig>Silverlight</StrongNameSig>
83 <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
86 <!-- Overwrite the key that we are going to use for signing -->
87 <AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)..\Tools\Signing\mscorlib.snk</AssemblyOriginatorKeyFile>
90 <!-- the signing marker file is incorrectly named mscorlib.dll.requires_signing -->
91 <Target Name="RenameSigningMarker" AfterTargets="WriteSigningRequired" Condition="Exists('$(TargetPath).requires_signing')">
92 <Move SourceFiles="$(TargetPath).requires_signing" DestinationFiles="$(OutputPath)\System.Private.CoreLib.dll.requires_signing" />