Emit isn't on the CSharpCompilationOptions
This commit is contained in:
parent
b378fb0419
commit
2d25d1232a
1 changed files with 0 additions and 6 deletions
|
@ -10,7 +10,6 @@ using System.Runtime.InteropServices;
|
|||
using System.Text;
|
||||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis.CSharp;
|
||||
using Microsoft.CodeAnalysis.Emit;
|
||||
using Microsoft.CodeAnalysis.Host.Mef;
|
||||
using Microsoft.CodeAnalysis.Text;
|
||||
using Microsoft.DotNet.Cli.Compiler.Common;
|
||||
|
@ -196,14 +195,9 @@ namespace Microsoft.DotNet.ProjectModel.Workspaces
|
|||
platform = Platform.AnyCpu;
|
||||
}
|
||||
|
||||
var debugType = StringComparer.OrdinalIgnoreCase.Equals(compilerOptions.DebugType, "full")
|
||||
? DebugInformationFormat.pdb
|
||||
:DebugInformationFormat.Portable;
|
||||
|
||||
options = options
|
||||
.WithAllowUnsafe(allowUnsafe)
|
||||
.WithPlatform(platform)
|
||||
.WithDebugInformationFormat(debugType)
|
||||
.WithGeneralDiagnosticOption(warningsAsErrors ? ReportDiagnostic.Error : ReportDiagnostic.Default)
|
||||
.WithOptimizationLevel(optimize ? OptimizationLevel.Release : OptimizationLevel.Debug);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue