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:
parent
42a17b5d98
commit
fa143c4d1c
1 changed files with 12 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue