Build the reference assembly and the facade for mscorlib.
authorAlex Ghiondea <ghiondea.alexandru@microsoft.com>
Tue, 10 May 2016 21:53:35 +0000 (14:53 -0700)
committerAlex Ghiondea <ghiondea.alexandru@microsoft.com>
Tue, 10 May 2016 22:52:10 +0000 (15:52 -0700)
Make sure that the facade projects generates pdbs when possible.

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

src/coreclr/src/build.proj
src/coreclr/src/mscorlib/facade/mscorlib.csproj

index 06d4c0d..b8245c5 100644 (file)
@@ -4,6 +4,8 @@
   <!-- List the projects that need to be built -->
   <ItemGroup>
     <Project Include="mscorlib\mscorlib.csproj" />
+    <Project Include="mscorlib\ref\mscorlib.csproj" />
+    <Project Include="mscorlib\facade\mscorlib.csproj" />
     <Project Include="mscorlib\System.Private.CoreLib.csproj" />
   </ItemGroup>
 
index ef67da4..21c26dc 100644 (file)
@@ -15,6 +15,9 @@
     <!-- 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>
   </PropertyGroup>
   <!-- Default configurations to help VS understand the options -->
   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|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>
+
   <!-- Output paths -->
   <PropertyGroup>
     <BaseIntermediateOutputPath>$(RootBinDir)\obj</BaseIntermediateOutputPath>