2 writes to _temporaryBatchFile
Microsoft.Build.Utilities.Core (2)
ToolTask.cs (2)
1409
_temporaryBatchFile
= FileUtilities.GetTemporaryFile(".cmd");
1416
_temporaryBatchFile
= FileUtilities.GetTemporaryFile(".sh");
10 references to _temporaryBatchFile
Microsoft.Build.Utilities.Core (10)
ToolTask.cs (10)
1422
File.AppendAllText(
_temporaryBatchFile
, "#!/bin/sh\n"); // first line for UNIX is ANSI
1424
File.AppendAllText(
_temporaryBatchFile
, AdjustCommandsForOperatingSystem(commandLineCommands), EncodingUtilities.CurrentSystemOemEncoding);
1426
commandLineCommands = $"\"{
_temporaryBatchFile
}\"";
1438
encoding = EncodingUtilities.BatchFileEncoding(commandLineCommands +
_temporaryBatchFile
, UseUtf8Encoding);
1446
File.AppendAllText(
_temporaryBatchFile
,
1452
File.AppendAllText(
_temporaryBatchFile
, commandLineCommands, encoding);
1458
string batchFileForCommandLine =
_temporaryBatchFile
;
1614
if (
_temporaryBatchFile
!= null && FileSystems.Default.FileExists(
_temporaryBatchFile
))
1616
DeleteTempFile(
_temporaryBatchFile
);