use response files by default

This commit is contained in:
Enrico Sada 2016-03-16 16:32:42 +01:00
parent b6fcbbdd86
commit 5728330a2f

View file

@ -220,15 +220,8 @@ namespace Microsoft.DotNet.Tools.Compiler.Fsc
var rsp = Path.Combine(tempOutDir, "dotnet-compile-fsc.rsp");
File.WriteAllLines(rsp, allArgs, Encoding.UTF8);
//with env var DOTNET_COMPILEFSC_USE_RESPONSE_FILE, use the response file instead of
//call fsc with all arguments
if (Environment.GetEnvironmentVariable("DOTNET_COMPILEFSC_USE_RESPONSE_FILE") == "1")
{
allArgs = new List<string> { $"@{rsp}" };
}
// Execute FSC!
var result = RunFsc(allArgs)
var result = RunFsc(new List<string> { $"@{rsp}" })
.ForwardStdErr()
.ForwardStdOut()
.Execute();