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"
}
```
This commit is contained in:
Jared Parsons 2016-03-04 15:33:06 -08:00
parent 42a17b5d98
commit fa143c4d1c

View file

@ -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;
}