2 writes to _temporaryBatchFile
Microsoft.Build.Utilities.Core (2)
ToolTask.cs (2)
1518
_temporaryBatchFile
= FileUtilities.GetTemporaryFile(".cmd");
1525
_temporaryBatchFile
= FileUtilities.GetTemporaryFile(".sh");
10 references to _temporaryBatchFile
Microsoft.Build.Utilities.Core (10)
ToolTask.cs (10)
1531
File.AppendAllText(
_temporaryBatchFile
, "#!/bin/sh\n"); // first line for UNIX is ANSI
1533
File.AppendAllText(
_temporaryBatchFile
, AdjustCommandsForOperatingSystem(commandLineCommands), EncodingUtilities.CurrentSystemOemEncoding);
1535
commandLineCommands = $"\"{
_temporaryBatchFile
}\"";
1547
encoding = EncodingUtilities.BatchFileEncoding(commandLineCommands +
_temporaryBatchFile
, UseUtf8Encoding);
1555
File.AppendAllText(
_temporaryBatchFile
,
1561
File.AppendAllText(
_temporaryBatchFile
, commandLineCommands, encoding);
1564
string batchFileForCommandLine =
_temporaryBatchFile
;
1720
if (
_temporaryBatchFile
!= null && FileSystems.Default.FileExists(
_temporaryBatchFile
))
1722
DeleteTempFile(
_temporaryBatchFile
);