Plumbde through the option

This commit is contained in:
Jared Parsons 2016-03-02 15:53:59 -08:00
parent e56858b4b3
commit 2deb9d343a
8 changed files with 41 additions and 5 deletions

View file

@ -89,7 +89,7 @@ namespace Microsoft.DotNet.Tools.Compiler.Csc
// Generate assembly info
var assemblyInfo = Path.Combine(tempOutDir, $"dotnet-compile.assemblyinfo.cs");
File.WriteAllText(assemblyInfo, AssemblyInfoFileGenerator.GenerateCSharp(assemblyInfoOptions, sources));
allArgs.Add($"\"{assemblyInfo}\"");
@ -106,7 +106,7 @@ namespace Microsoft.DotNet.Tools.Compiler.Csc
// Only the first should be quoted. This is handled
// in dotnet-compile where the information is present.
allArgs.AddRange(resources.Select(resource => $"-resource:{resource}"));
allArgs.AddRange(sources.Select(s => $"\"{s}\""));
var rsp = Path.Combine(tempOutDir, "dotnet-compile-csc.rsp");
@ -129,7 +129,6 @@ namespace Microsoft.DotNet.Tools.Compiler.Csc
{
"-nostdlib",
"-nologo",
"-debug:portable"
};
return args;
@ -214,6 +213,10 @@ namespace Microsoft.DotNet.Tools.Compiler.Csc
commonArgs.Add("-t:library");
}
commonArgs.Add((string.IsNullOrEmpty(options.DebugType) || options.DebugType == "portable")
? "-debug:portable"
: "-debug:full");
return commonArgs;
}