11 instantiations of DisposableFile
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
IntegrationTests.cs (1)
93return new DisposableFile(Path.Combine(directory.Path, resultFileName));
Microsoft.CodeAnalysis.Test.Utilities (9)
CommonTestBase.cs (2)
226using (new DisposableFile(assemblyPath)) 233using (new DisposableFile(pdbPath))
Metadata\IlasmUtilities.cs (2)
23return new DisposableFile(assemblyPath); 78using (var sourceFile = new DisposableFile(extension: ".il"))
Platform\Desktop\DesktopRuntimeUtil.cs (1)
62using (var file = new DisposableFile(extension: ".dll"))
TempFiles\TempDirectory.cs (3)
62return _root.AddFile(new DisposableFile(filePath)); 72return _root.AddFile(new DisposableFile(filePath)); 82return _root.AddFile(new DisposableFile(filePath));
TempFiles\TempRoot.cs (1)
64return AddFile(new DisposableFile(prefix, extension, directory, callerSourcePath, callerLineNumber));
VBCSCompiler.UnitTests (1)
CompilerServerTests.cs (1)
257return new DisposableFile(Path.Combine(directory.Path, resultFileName));
29 references to DisposableFile
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (3)
IntegrationTests.cs (3)
91private DisposableFile GetResultFile(TempDirectory directory, string resultFileName) 110using (var resultFile = GetResultFile(path, "hello.exe")) 410using (var resultFile = GetResultFile(_tempDirectory, @"bin\debug\helloproj.exe"))
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
EditAndContinue\StatementEditingTests.cs (1)
3722using (var tempAssembly = IlasmUtilities.CreateTempAssembly(delegateSource))
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\SymbolErrorTests.cs (2)
7129using (var reference = IlasmUtilities.CreateTempAssembly(ilSource, prependDefaultHeader: false)) 7198using (var reference = IlasmUtilities.CreateTempAssembly(ilSource, prependDefaultHeader: false))
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestBase.cs (1)
1522using (var tempAssembly = IlasmUtilities.CreateTempAssembly(ilSource, prependDefaultHeader))
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Utilities\SymbolEquivalenceComparerTests.cs (1)
1826using (var tempAssembly = IlasmUtilities.CreateTempAssembly(ilSource))
Microsoft.CodeAnalysis.Test.Utilities (5)
Metadata\IlasmUtilities.cs (2)
18public static DisposableFile CreateTempAssembly(string declarations, bool prependDefaultHeader = true) 78using (var sourceFile = new DisposableFile(extension: ".il"))
Platform\Desktop\DesktopRuntimeUtil.cs (1)
62using (var file = new DisposableFile(extension: ".dll"))
TempFiles\TempRoot.cs (2)
67public DisposableFile AddFile(DisposableFile file)
VBCSCompiler.UnitTests (16)
CompilerServerTests.cs (16)
255private static DisposableFile GetResultFile(TempDirectory directory, string resultFileName) 277using (var resultFile = GetResultFile(path, "hello.exe")) 752using (var tmpFile = GetResultFile(rootDirectory, "lib.dll")) 758using (var hello1_file = GetResultFile(rootDirectory, "hello1.exe")) 777using (var hello2_file = GetResultFile(rootDirectory, "hello2.exe")) 815using (var hello3_file = GetResultFile(rootDirectory, "hello3.exe")) 856using (var tmpFile = GetResultFile(rootDirectory, "lib.dll")) 873using (var hello1_file = GetResultFile(rootDirectory, "hello1.exe")) 891using (var hello2_file = GetResultFile(rootDirectory, "hello2.exe")) 893var hello2exe = Temp.AddFile(hello2_file); 929using (var hello3_file = GetResultFile(rootDirectory, "hello3.exe")) 962private Task<DisposableFile> RunCompilationAsync(RequestLanguage language, string pipeName, int i, TempDirectory compilationDir) 1012var exeFile = GetResultFile(compilationDir, exeFileName); 1028var tasks = new Task<DisposableFile>[numberOfCompiles]; 1086var resultFile = Temp.AddFile(GetResultFile(_tempDirectory, "hello1.exe")); 1138var resultFile = Temp.AddFile(GetResultFile(_tempDirectory, "hello1.exe"));