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