From b378fb0419b74d45d5a14e762d2918dc115a364a Mon Sep 17 00:00:00 2001 From: Jared Parsons Date: Wed, 2 Mar 2016 16:24:54 -0800 Subject: [PATCH] fixes --- .../CommonCompilerOptionsExtensions.cs | 2 +- .../CompilationOptions.cs | 7 ++++++- .../DependencyContextStrings.cs | 4 +++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/Microsoft.DotNet.Compiler.Common/CommonCompilerOptionsExtensions.cs b/src/Microsoft.DotNet.Compiler.Common/CommonCompilerOptionsExtensions.cs index 3f2803a97..5255f1437 100644 --- a/src/Microsoft.DotNet.Compiler.Common/CommonCompilerOptionsExtensions.cs +++ b/src/Microsoft.DotNet.Compiler.Common/CommonCompilerOptionsExtensions.cs @@ -65,7 +65,7 @@ namespace Microsoft.DotNet.Cli.Compiler.Common syntax.DefineOptionList(s_additionalArgumentsTemplate.LongName, ref additionalArguments, "Pass the additional argument directly to the compiler"); - syntax.DefineOption(s_debugTypeTemplate, ref debugType, "The type of PDB to emit: portable or full"); + syntax.DefineOption(s_debugTypeTemplate.LongName, ref debugType, "The type of PDB to emit: portable or full"); syntax.DefineOption(s_languageVersionTemplate.LongName, ref languageVersion, "The version of the language used to compile"); diff --git a/src/Microsoft.Extensions.DependencyModel/CompilationOptions.cs b/src/Microsoft.Extensions.DependencyModel/CompilationOptions.cs index a59a3900c..d887671cc 100644 --- a/src/Microsoft.Extensions.DependencyModel/CompilationOptions.cs +++ b/src/Microsoft.Extensions.DependencyModel/CompilationOptions.cs @@ -26,6 +26,8 @@ namespace Microsoft.Extensions.DependencyModel public bool? PublicSign { get; } + public string DebugType { get; } + public bool? EmitEntryPoint { get; } public bool? GenerateXmlDocumentation { get; } @@ -40,6 +42,7 @@ namespace Microsoft.Extensions.DependencyModel keyFile: null, delaySign: null, publicSign: null, + debugType: null, emitEntryPoint: null, generateXmlDocumentation: null); @@ -52,6 +55,7 @@ namespace Microsoft.Extensions.DependencyModel string keyFile, bool? delaySign, bool? publicSign, + string debugType, bool? emitEntryPoint, bool? generateXmlDocumentation) { @@ -64,8 +68,9 @@ namespace Microsoft.Extensions.DependencyModel KeyFile = keyFile; DelaySign = delaySign; PublicSign = publicSign; + DebugType = debugType; EmitEntryPoint = emitEntryPoint; GenerateXmlDocumentation = generateXmlDocumentation; } } -} \ No newline at end of file +} diff --git a/src/Microsoft.Extensions.DependencyModel/DependencyContextStrings.cs b/src/Microsoft.Extensions.DependencyModel/DependencyContextStrings.cs index ca6118194..a3831d0be 100644 --- a/src/Microsoft.Extensions.DependencyModel/DependencyContextStrings.cs +++ b/src/Microsoft.Extensions.DependencyModel/DependencyContextStrings.cs @@ -43,8 +43,10 @@ namespace Microsoft.Extensions.DependencyModel internal const string PublicSignPropertyName = "publicSign"; + internal const string DebugTypePropertyName = "debugType"; + internal const string EmitEntryPointPropertyName = "emitEntryPoint"; internal const string GenerateXmlDocumentationPropertyName = "xmlDoc"; } -} \ No newline at end of file +}