From fa143c4d1c79c1de43479cbb00be61b95097f974 Mon Sep 17 00:00:00 2001 From: Jared Parsons Date: Fri, 4 Mar 2016 15:33:06 -0800 Subject: [PATCH] Revert to full PDB on Windows as a default The change to default to Portable PDB by default has broken a number of downstream consumers. Moving back to full PDBs by default on Windows. This leaves the option for portable PDB in place. Hence you can still enable it via the following entry in project.json: ``` json "compilationOptions": { "debugType": "portable" } ``` --- src/dotnet/commands/dotnet-compile-csc/Program.cs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/dotnet/commands/dotnet-compile-csc/Program.cs b/src/dotnet/commands/dotnet-compile-csc/Program.cs index 9e4a26b29..1f4386119 100644 --- a/src/dotnet/commands/dotnet-compile-csc/Program.cs +++ b/src/dotnet/commands/dotnet-compile-csc/Program.cs @@ -213,9 +213,18 @@ namespace Microsoft.DotNet.Tools.Compiler.Csc commonArgs.Add("-t:library"); } - commonArgs.Add((string.IsNullOrEmpty(options.DebugType) || options.DebugType == "portable") - ? "-debug:portable" - : "-debug:full"); + if (string.IsNullOrEmpty(options.DebugType)) + { + commonArgs.Add(RuntimeInformation.IsOSPlatform(OSPlatform.Windows) + ? "-debug:full" + : "-debug:portable"); + } + else + { + commonArgs.Add(options.DebugType == "portable" + ? "-debug:portable" + : "-debug:full"); + } return commonArgs; }