File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -456,7 +456,7 @@ public bool LogRoslynArgs(string[] roslynArgs, string extractorVersion)
456
456
bool argsWritten ;
457
457
using ( var streamWriter = new StreamWriter ( new FileStream ( tempFile , FileMode . Append , FileAccess . Write ) ) )
458
458
{
459
- streamWriter . WriteLine ( $ "# Arguments to Roslyn: { string . Join ( ' ' , roslynArgs ) } ") ;
459
+ streamWriter . WriteLine ( $ "# Arguments to Roslyn: { string . Join ( ' ' , roslynArgs . Where ( arg => ! arg . StartsWith ( '@' ) ) ) } ") ;
460
460
argsWritten = roslynArgs . WriteCommandLine ( streamWriter ) ;
461
461
}
462
462
Original file line number Diff line number Diff line change @@ -15,15 +15,16 @@ public static class CommandLineExtensions
15
15
/// <returns>True iff the file was written.</returns>
16
16
public static bool WriteCommandLine ( this IEnumerable < string > commandLineArguments , TextWriter textWriter )
17
17
{
18
- foreach ( var arg in commandLineArguments . Where ( arg => arg [ 0 ] == '@' ) . Select ( arg => arg . Substring ( 1 ) ) )
18
+ var found = false ;
19
+ foreach ( var arg in commandLineArguments . Where ( arg => arg . StartsWith ( '@' ) ) . Select ( arg => arg . Substring ( 1 ) ) )
19
20
{
20
21
string line ;
21
22
using ( StreamReader file = new StreamReader ( arg ) )
22
23
while ( ( line = file . ReadLine ( ) ) != null )
23
24
textWriter . WriteLine ( line ) ;
24
- return true ;
25
+ found = true ;
25
26
}
26
- return false ;
27
+ return found ;
27
28
}
28
29
}
29
30
}
You can’t perform that action at this time.
0 commit comments