53 references to OpenWrite
Microsoft.Build.Tasks.Core (5)
AssemblyDependency\GenerateBindingRedirects.cs (1)
138using (var stream = FileUtilities.OpenWrite(OutputAppConfigFile.ItemSpec, false))
ExceptionHandling.cs (2)
359using (StreamWriter writer = FileUtilities.OpenWrite(s_dumpFileName, append: true)) 366using (StreamWriter writer = FileUtilities.OpenWrite(s_dumpFileName, append: true))
Exec.cs (1)
211using (StreamWriter sw = FileUtilities.OpenWrite(_batchFile, false, encoding))
GenerateResource.cs (1)
3804using (StreamWriter writer = FileUtilities.OpenWrite(fileName, false, Encoding.UTF8))
Microsoft.Build.Tasks.UnitTests (48)
Copy_Tests.cs (32)
491using (StreamWriter sw = FileUtilities.OpenWrite(file, true)) // HIGHCHAR: Test writes in UTF8 without preamble. 538using (StreamWriter sw = FileUtilities.OpenWrite(source, true)) 587using (StreamWriter sw = FileUtilities.OpenWrite(source, true)) 592using (StreamWriter sw = FileUtilities.OpenWrite(destination, true)) 645using (StreamWriter sw = FileUtilities.OpenWrite(source, true)) 650using (StreamWriter sw = FileUtilities.OpenWrite(destination, true)) 700using (StreamWriter sw = FileUtilities.OpenWrite(source, true)) 705using (StreamWriter sw = FileUtilities.OpenWrite(destination, true)) 767using (StreamWriter sw = FileUtilities.OpenWrite(source, true)) 772using (StreamWriter sw = FileUtilities.OpenWrite(destination, true)) 834using (StreamWriter sw = FileUtilities.OpenWrite(source, true)) 839using (StreamWriter sw = FileUtilities.OpenWrite(destination, true)) 901using (StreamWriter sw = FileUtilities.OpenWrite(source, true)) 906using (StreamWriter sw = FileUtilities.OpenWrite(destination, true)) 964using (StreamWriter sw = FileUtilities.OpenWrite(source1, true)) 969using (StreamWriter sw = FileUtilities.OpenWrite(source2, true)) 974using (StreamWriter sw = FileUtilities.OpenWrite(destination1, true)) 979using (StreamWriter sw = FileUtilities.OpenWrite(destination2, true)) 1044using (StreamWriter sw = FileUtilities.OpenWrite(sourceFile, true)) // HIGHCHAR: Test writes in UTF8 without preamble. 1049using (StreamWriter sw = FileUtilities.OpenWrite(destinationFile, true)) // HIGHCHAR: Test writes in UTF8 without preamble. 1177using (StreamWriter sw = FileUtilities.OpenWrite(sourceFile, true)) // HIGHCHAR: Test writes in UTF8 without preamble. 1182using (StreamWriter sw = FileUtilities.OpenWrite(destinationFile, true)) // HIGHCHAR: Test writes in UTF8 without preamble. 1267using (StreamWriter sw = FileUtilities.OpenWrite(destinationFile, true)) // HIGHCHAR: Test writes in UTF8 without preamble. 1314using (StreamWriter sw = FileUtilities.OpenWrite(destinationFile, true)) // HIGHCHAR: Test writes in UTF8 without preamble. 1363using (StreamWriter sw = FileUtilities.OpenWrite(destinationFile, true)) // Keep it locked 1486using (StreamWriter sw = FileUtilities.OpenWrite(sourceFile, true)) 1532using (StreamWriter sw = FileUtilities.OpenWrite(sourceFile, true)) // HIGHCHAR: Test writes in UTF8 without preamble. 1854using (StreamWriter sw = FileUtilities.OpenWrite(sourceFile, true)) // HIGHCHAR: Test writes in UTF8 without preamble. 1927using (StreamWriter sw = FileUtilities.OpenWrite(sourceFile, true)) // HIGHCHAR: Test writes in UTF8 without preamble. 1993using (StreamWriter sw = FileUtilities.OpenWrite(item.ItemSpec, false)) // HIGHCHAR: Test writes in UTF8 without preamble. 2051using (StreamWriter sw = FileUtilities.OpenWrite(item.ItemSpec, false)) // HIGHCHAR: Test writes in UTF8 without preamble. 2177using (StreamWriter sw = FileUtilities.OpenWrite(sourceFile, true)) // HIGHCHAR: Test writes in UTF8 without preamble.
Delete_Tests.cs (1)
51using (StreamWriter sw = FileUtilities.OpenWrite(source, true))
Move_Tests.cs (15)
29using (StreamWriter sw = FileUtilities.OpenWrite(sourceFile, true)) 74using (StreamWriter sw = FileUtilities.OpenWrite(sourceFile, true)) 128using (StreamWriter sw = FileUtilities.OpenWrite(destinationFile, true)) 173using (StreamWriter sw = FileUtilities.OpenWrite(sourceFile, true)) 209using (StreamWriter sw = FileUtilities.OpenWrite(sourceFile, true)) 214using (StreamWriter sw = FileUtilities.OpenWrite(destinationFile, true)) 264using (StreamWriter sw = FileUtilities.OpenWrite(sourceFile, true)) 269using (StreamWriter sw = FileUtilities.OpenWrite(destinationFile, true)) 316using (StreamWriter sw = FileUtilities.OpenWrite(sourceFile, true)) 321using (StreamWriter sw = FileUtilities.OpenWrite(destinationFile, true)) 370using (StreamWriter sw = FileUtilities.OpenWrite(sourceFile, true)) 375using (StreamWriter sw = FileUtilities.OpenWrite(destinationFile, true)) 507using (StreamWriter writer = FileUtilities.OpenWrite(file, false)) // lock it for write 686using (StreamWriter sw = FileUtilities.OpenWrite(sourceFile, true)) 790using (StreamWriter sw = FileUtilities.OpenWrite(sourceFile, true)) // HIGHCHAR: Test writes in UTF8 without preamble.