diff --git a/src/dotnet/commands/dotnet-compile-fsc/Program.cs b/src/dotnet/commands/dotnet-compile-fsc/Program.cs index 5d49b6dbd..a47c70c3f 100644 --- a/src/dotnet/commands/dotnet-compile-fsc/Program.cs +++ b/src/dotnet/commands/dotnet-compile-fsc/Program.cs @@ -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 { $"@{rsp}" }; - } - // Execute FSC! - var result = RunFsc(allArgs) + var result = RunFsc(new List { $"@{rsp}" }) .ForwardStdErr() .ForwardStdOut() .Execute();