2 writes to _temporaryBatchFile
Microsoft.Build.Utilities.Core (2)
ToolTask.cs (2)
1516_temporaryBatchFile = FileUtilities.GetTemporaryFile(".cmd"); 1523_temporaryBatchFile = FileUtilities.GetTemporaryFile(".sh");
10 references to _temporaryBatchFile
Microsoft.Build.Utilities.Core (10)
ToolTask.cs (10)
1529File.AppendAllText(_temporaryBatchFile, "#!/bin/sh\n"); // first line for UNIX is ANSI 1531File.AppendAllText(_temporaryBatchFile, AdjustCommandsForOperatingSystem(commandLineCommands), EncodingUtilities.CurrentSystemOemEncoding); 1533commandLineCommands = $"\"{_temporaryBatchFile}\""; 1545encoding = EncodingUtilities.BatchFileEncoding(commandLineCommands + _temporaryBatchFile, UseUtf8Encoding); 1553File.AppendAllText(_temporaryBatchFile, 1559File.AppendAllText(_temporaryBatchFile, commandLineCommands, encoding); 1565string batchFileForCommandLine = _temporaryBatchFile; 1722if (_temporaryBatchFile != null && FileSystems.Default.FileExists(_temporaryBatchFile)) 1724DeleteTempFile(_temporaryBatchFile);