37 instantiations of TempRoot
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
CopyRefAssemblyTests.cs (1)
20public TempRoot TempRoot { get; } = new TempRoot();
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
Utilities\AbstractLanguageServerHostTests.cs (1)
24TempRoot = new();
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
CSharpDeterministicKeyBuilderTests.cs (1)
408using var temp = new TempRoot();
Microsoft.CodeAnalysis.Test.Utilities (2)
AssemblyLoadTestFixture.cs (1)
125_temp = new TempRoot();
TestBase.cs (1)
59_temp = new TempRoot();
Microsoft.CodeAnalysis.UnitTests (15)
AnalyzerAssemblyLoaderTests.cs (14)
341using var temp = new TempRoot(); 534using var temp = new TempRoot(); 562using var temp = new TempRoot(); 672using var temp = new TempRoot(); 727using var temp = new TempRoot(); 1045using var temp = new TempRoot(); 1200using var temp = new TempRoot(); 1455using var tempRoot = new TempRoot(); 1489using var temp = new TempRoot(); 1512using var temp = new TempRoot(); 1543using var temp = new TempRoot(); 1604using var temp = new TempRoot(); 1639using var temp = new TempRoot(); 1662using var temp = new TempRoot();
InvokeUtil.cs (1)
48using var tempRoot = new TempRoot();
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
CommandLineProject\CommandLineProjectWorkspaceTests.cs (1)
21using var tempRoot = new TempRoot();
SolutionTests\SolutionTests.cs (1)
4504using var root = new TempRoot();
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
1030using var tempRoot = new TempRoot();
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (4)
PersistentStorage\AbstractPersistentStorageTests.cs (2)
80_persistentFolderRoot = new DisposableDirectory(new TempRoot()); 131using var folderRoot = new DisposableDirectory(new TempRoot());
ProjectSystemShim\CPS\CSharpReferencesTests.cs (1)
134using var tempRoot = new TempRoot();
ProjectSystemShim\TempPECompilerServiceTests.cs (1)
24using var tempRoot = new TempRoot();
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Diagnostics\VisualStudioDiagnosticAnalyzerProviderTests.vb (1)
51Using tempRoot = New TempRoot
Roslyn.VisualStudio.Next.UnitTests (6)
Remote\SnapshotSerializationTests.cs (5)
417using var tempRoot = new TempRoot(); 438using var tempRoot = new TempRoot(); 459using var tempRoot = new TempRoot(); 478using var temp = new TempRoot(); 560using var tempRoot = new TempRoot();
Services\ServiceHubServicesTests.cs (1)
345using var tempRoot = new TempRoot();
VBCSCompiler.UnitTests (3)
BuildServerConnectionTests.cs (1)
20internal TempRoot TempRoot { get; } = new TempRoot();
CompilerServerApiTest.cs (1)
113using var temp = new TempRoot();
VBCSCompilerServerTests.cs (1)
27public TempRoot TempRoot { get; } = new TempRoot();
209 references to TempRoot
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (2)
CopyRefAssemblyTests.cs (1)
20public TempRoot TempRoot { get; } = new TempRoot();
GenerateMSBuildEditorConfigTests.cs (1)
362var fileName = Path.Combine(TempRoot.Root, "ConfigFileCanBeWrittenToDisk.GenerateMSBuildEditorConfig.editorconfig");
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (6)
CommandLineTestBase.cs (2)
30WorkingDirectory = TempRoot.Root; 36string getSdkDirectory(TempRoot temp)
CommandLineTests.cs (4)
2884Diagnostic(ErrorCode.ERR_CantReadRulesetFile).WithArguments(Path.Combine(TempRoot.Root, "blah"), "File not found.")); 2885Assert.Equal(expected: Path.Combine(TempRoot.Root, "blah"), actual: parsedArgs.RuleSetPath); 2889Diagnostic(ErrorCode.ERR_CantReadRulesetFile).WithArguments(Path.Combine(TempRoot.Root, "blah;blah.ruleset"), "File not found.")); 2890Assert.Equal(expected: Path.Combine(TempRoot.Root, "blah;blah.ruleset"), actual: parsedArgs.RuleSetPath);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (6)
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (5)
45AddDocument("test.cs", SourceText.From(source, Encoding.UTF8), filePath: Path.Combine(TempRoot.Root, "test.cs")).Project.Solution; 464AddDocument("test.cs", root, filePath: Path.Combine(TempRoot.Root, "test.cs")).Project.Solution; 665var newSolution = oldSolution.AddDocument(newDocId, "goo.cs", SourceText.From(source2), filePath: Path.Combine(TempRoot.Root, "goo.cs")); 711var newSolution = oldSolution.AddDocument(newDocId, "goo.cs", SourceText.From(source2), filePath: Path.Combine(TempRoot.Root, "goo.cs")); 738var filePath = Path.Combine(TempRoot.Root, "src.cs");
EditAndContinue\Helpers\EditingTestBase.cs (1)
127=> Path.Combine(TempRoot.Root, documentIndex.ToString() + ".cs");
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
SourceGeneration\GeneratorDriverTests.cs (1)
4150var projectDir = TempRoot.Root;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Diagnostics\DiagnosticTest.cs (2)
2909var parsedArgs = CSharpCommandLineParser.Default.Parse(new[] { pathmapArg, "a.cs" }, TempRoot.Root, RuntimeEnvironment.GetRuntimeDirectory(), null); 2920var parsedArgs = CSharpCommandLineParser.Default.Parse(args, TempRoot.Root, RuntimeEnvironment.GetRuntimeDirectory(), null);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
TestOptions.cs (1)
104public static readonly GeneratorDriverOptions GeneratorDriverOptions = new GeneratorDriverOptions(trackIncrementalGeneratorSteps: true, baseDirectory: TempRoot.Root);
Microsoft.CodeAnalysis.Features.Test.Utilities (6)
EditAndContinue\ActiveStatementsDescription.cs (1)
145var documentName = filePaths?[sourceIndex] ?? Path.Combine(TempRoot.Root, TestWorkspace.GetDefaultTestSourceDocumentName(sourceIndex, extension ?? ""));
EditAndContinue\EditAndContinueTestVerifier.cs (1)
444filePath: Path.Combine(TempRoot.Root, "project" + ProjectFileExtension),
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (3)
128filePath: Path.Combine(TempRoot.Root, "config")); 138AddDocument(fileName, CreateText(source), filePath: Path.Combine(TempRoot.Root, fileName)); 255var sources = new[] { (source, sourceFilePath ?? Path.Combine(TempRoot.Root, "test1.cs")) };
EditAndContinue\Extensions.cs (1)
109assemblyPath: Path.Combine(TempRoot.Root, projectName + ".dll"),
Microsoft.CodeAnalysis.Features.UnitTests (25)
EditAndContinue\CompileTimeSolutionProviderTests.cs (6)
30var projectFilePath = Path.Combine(TempRoot.Root, "a.csproj"); 31var additionalFilePath = Path.Combine(TempRoot.Root, "a", $"X.{kind}"); 32var designTimeFilePath = Path.Combine(TempRoot.Root, "a", $"X.{kind}.g.cs"); 35var sourceGeneratedPathPrefix = Path.Combine(TempRoot.Root, typeof(TestSourceGenerator).Assembly.GetName().Name!, typeof(TestSourceGenerator).FullName); 44assemblyPath: Path.Combine(TempRoot.Root, "proj"), 114assemblyPath: Path.Combine(TempRoot.Root, "proj"),
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (13)
1534var pathA = Path.Combine(TempRoot.Root, "A.cs"); 1535var pathB = Path.Combine(TempRoot.Root, "B.cs"); 1536var pathC = Path.Combine(TempRoot.Root, "C.cs"); 1537var pathD = Path.Combine(TempRoot.Root, "D.cs"); 1538var pathX = Path.Combine(TempRoot.Root, "X"); 1539var pathY = Path.Combine(TempRoot.Root, "Y"); 1540var pathCommon = Path.Combine(TempRoot.Root, "Common.cs"); 1609var pathX = Path.Combine(TempRoot.Root, "X.cs"); 1610var pathA = Path.Combine(TempRoot.Root, "A.cs"); 1776var pathA = Path.Combine(TempRoot.Root, "A.txt"); 2860TempRoot.Root, 3189AddDocument("DocB", source1, filePath: Path.Combine(TempRoot.Root, "DocB.cs")).Project; 3528var filePath = withPath ? Path.Combine(TempRoot.Root, "test.cs") : null;
EditAndContinue\EditSessionActiveStatementsTests.cs (1)
79solution = solution.AddDocument(id, name, text, filePath: Path.Combine(TempRoot.Root, name));
EditAndContinue\EmitSolutionUpdateResultsTests.cs (4)
66var sourcePath = Path.Combine(TempRoot.Root, "x", "a.cs"); 67var razorPath1 = Path.Combine(TempRoot.Root, "x", "a.razor"); 68var razorPath2 = Path.Combine(TempRoot.Root, "a.razor"); 73AddDocument(sourcePath, SourceText.From("class C {}", Encoding.UTF8), filePath: Path.Combine(TempRoot.Root, sourcePath));
EditAndContinue\WatchHotReloadServiceTests.cs (1)
142.AddAdditionalDocument("A.txt", "text", filePath: Path.Combine(TempRoot.Root, "A.txt"))
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (3)
Options\SolutionAnalyzerConfigOptionsUpdaterTests.cs (3)
115filePath: Path.Combine(TempRoot.Root, "proj_without_config", "test.cs"))); 131filePath: Path.Combine(TempRoot.Root, "proj_with_config", ".editorconfig"))); 136filePath: Path.Combine(TempRoot.Root, "proj_with_config", "test.cs")));
Microsoft.CodeAnalysis.LanguageServer.UnitTests (4)
ExportProviderBuilderTests.cs (1)
100var directory = TempRoot.CreateDirectory();
LspFileChangeWatcherTests.cs (2)
57var tempDirectory = TempRoot.CreateDirectory(); 87var tempDirectory = TempRoot.CreateDirectory();
Utilities\AbstractLanguageServerHostTests.cs (1)
18protected TempRoot TempRoot { get; }
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
CSharpDeterministicKeyBuilderTests.cs (1)
408using var temp = new TempRoot();
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (1)
MetadataShadowCopyProviderTests.cs (1)
44return new MetadataShadowCopyProvider(TempRoot.Root, s_systemNoShadowCopyDirectories, culture);
Microsoft.CodeAnalysis.Test.Utilities (15)
AssemblyLoadTestFixture.cs (1)
20private readonly TempRoot _temp;
Compilation\IRuntimeEnvironment.cs (1)
315dumpDirectory = TempRoot.Root;
Metadata\IlasmUtilities.cs (1)
83TempRoot.Root,
TempFiles\DisposableDirectory.cs (1)
14public DisposableDirectory(TempRoot root)
TempFiles\TempDirectory.cs (6)
16private readonly TempRoot _root; 18protected TempDirectory(TempRoot root) 19: this(CreateUniqueDirectory(TempRoot.Root), root) 23private TempDirectory(string path, TempRoot root) 61TempRoot.CreateStream(filePath, FileMode.CreateNew); 71TempRoot.CreateStream(filePath, FileMode.OpenOrCreate);
TempFiles\TempFile.cs (2)
38_path = System.IO.Path.Combine(directory ?? TempRoot.Root, prefix + Guid.NewGuid() + (extension ?? ".tmp")); 42TempRoot.CreateStream(_path, FileMode.CreateNew);
TempFiles\TempRoot.cs (1)
49throw new ObjectDisposedException(nameof(TempRoot));
TestBase.cs (2)
28private TempRoot? _temp; 53public TempRoot Temp
Microsoft.CodeAnalysis.UnitTests (20)
AnalyzerAssemblyLoaderTests.cs (14)
341using var temp = new TempRoot(); 534using var temp = new TempRoot(); 562using var temp = new TempRoot(); 672using var temp = new TempRoot(); 727using var temp = new TempRoot(); 1045using var temp = new TempRoot(); 1200using var temp = new TempRoot(); 1455using var tempRoot = new TempRoot(); 1489using var temp = new TempRoot(); 1512using var temp = new TempRoot(); 1543using var temp = new TempRoot(); 1604using var temp = new TempRoot(); 1639using var temp = new TempRoot(); 1662using var temp = new TempRoot();
Analyzers\AnalyzerFileReferenceTests.cs (5)
48Assert.Throws<ArgumentNullException>("assemblyLoader", () => new AnalyzerFileReference(TempRoot.Root, null!)); 58var refBadPath = new AnalyzerFileReference(PathUtilities.CombinePathsUnchecked(TempRoot.Root, "\0<>|*.xyz"), loader); 66var path1 = Path.Combine(TempRoot.Root, "dir"); 67var path2 = Path.Combine(TempRoot.Root, "dir", "..", "dir"); 164AnalyzerFileReference reference = CreateAnalyzerFileReference(Path.Combine(TempRoot.Root, "random.dll"));
InvokeUtil.cs (1)
48using var tempRoot = new TempRoot();
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (9)
CommandLineTests.vb (7)
44Private ReadOnly _baseDirectory As String = TempRoot.Root 2882Diagnostic(ERRID.ERR_CantReadRulesetFile).WithArguments(Path.Combine(TempRoot.Root, "blah"), "File not found.")) 2883Assert.Equal(expected:=Path.Combine(TempRoot.Root, "blah"), actual:=parsedArgs.RuleSetPath) 2887Diagnostic(ERRID.ERR_CantReadRulesetFile).WithArguments(Path.Combine(TempRoot.Root, "blah;blah.ruleset"), "File not found.")) 2888Assert.Equal(expected:=Path.Combine(TempRoot.Root, "blah;blah.ruleset"), actual:=parsedArgs.RuleSetPath) 3541Dim parsedArgs = VisualBasicCommandLineParser.Default.Parse({pathmapArg, "a.vb"}, TempRoot.Root, RuntimeEnvironment.GetRuntimeDirectory(), Nothing) 3550Dim parsedArgs = VisualBasicCommandLineParser.Default.Parse(args, TempRoot.Root, RuntimeEnvironment.GetRuntimeDirectory(), Nothing)
SarifErrorLoggerTests.vb (1)
18Private ReadOnly _baseDirectory As String = TempRoot.Root
TouchedFileLoggingTests.vb (1)
21Private ReadOnly _baseDirectory As String = TempRoot.Root
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
TestOptions.vb (1)
43Public Shared ReadOnly GeneratorDriverOptions As GeneratorDriverOptions = New GeneratorDriverOptions(trackIncrementalGeneratorSteps:=True, baseDirectory:=TempRoot.Root)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
SolutionUtilities.cs (1)
116assemblyPath: Path.Combine(TempRoot.Root, name),
Microsoft.CodeAnalysis.Workspaces.UnitTests (21)
CommandLineProject\CommandLineProjectWorkspaceTests.cs (1)
21using var tempRoot = new TempRoot();
Host\LanguageServices\TestCSharpCompilationFactoryServiceWithIncrementalGeneratorTracking.cs (1)
60return CSharpGeneratorDriver.Create(generators, additionalTexts, (CSharpParseOptions)parseOptions, optionsProvider, new GeneratorDriverOptions(IncrementalGeneratorOutputKind.None, trackIncrementalGeneratorSteps: true, baseDirectory: TempRoot.Root));
SolutionTests\ProjectInfoTests.cs (1)
194SolutionTestHelpers.TestProperty(instance, (old, value) => old.WithCompilationOutputInfo(value), opt => opt.CompilationOutputInfo, new CompilationOutputInfo("NewPath", TempRoot.Root));
SolutionTests\SolutionTests.cs (15)
1163var generatedOutputDir = Path.Combine(TempRoot.Root, "obj"); 1164var assemblyPath = Path.Combine(TempRoot.Root, "bin", "assemblyName.dll"); 1483var objDir = Path.Combine(TempRoot.Root, "obj"); 1484var binDir = Path.Combine(TempRoot.Root, "bin"); 1485var otherDir = Path.Combine(TempRoot.Root, "other"); 1542var info = new CompilationOutputInfo("\0<>a/b/*.dll", TempRoot.Root + "<>\0"); 2392var filePath = Path.Combine(TempRoot.Root, "x.cs"); 2423var filePath = Path.Combine(TempRoot.Root, "x.cs"); 2451var filePath = Path.Combine(TempRoot.Root, "x.cs"); 2480var filePath = Path.Combine(TempRoot.Root, "x.cs"); 4504using var root = new TempRoot(); 5498projectPath = string.IsNullOrEmpty(projectPath) ? projectPath : Path.Combine(TempRoot.Root, projectPath); 5499configPath = Path.Combine(TempRoot.Root, configPath); 5500sourcePath = string.IsNullOrEmpty(sourcePath) ? sourcePath : Path.Combine(TempRoot.Root, sourcePath); 5732.WithCompilationOutputInfo(new CompilationOutputInfo(assemblyPath: Path.Combine(TempRoot.Root, "assembly.dll"), generatedFilesOutputDirectory: null));
SolutionTests\SolutionWithSourceGeneratorTests.cs (3)
44var generatedFilesOutputDir = Path.Combine(TempRoot.Root, "gendir"); 45var assemblyPath = Path.Combine(TempRoot.Root, "assemblyDir", "assembly.dll"); 1030using var tempRoot = new TempRoot();
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (4)
ProjectSystemShim\CPS\AdditionalPropertiesTests.cs (1)
170var path = Path.Combine(TempRoot.Root, "generated");
ProjectSystemShim\CPS\CSharpCompilerOptionsTests.cs (1)
199var path = Path.Combine(TempRoot.Root, "generated");
ProjectSystemShim\CPS\CSharpReferencesTests.cs (1)
134using var tempRoot = new TempRoot();
ProjectSystemShim\TempPECompilerServiceTests.cs (1)
24using var tempRoot = new TempRoot();
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (3)
MockExtensionManager.vb (3)
39Return content.RelativePath.Replace("$RootFolder$", Path.Combine(TempRoot.Root, "ResolvedRootFolder")) 41Return content.RelativePath.Replace("$ShellFolder$", Path.Combine(TempRoot.Root, "ResolvedShellFolder")) 43Return Path.Combine(TempRoot.Root, "InstallPath", content.RelativePath)
Microsoft.VisualStudio.LanguageServices.UnitTests (58)
Diagnostics\VisualStudioDiagnosticAnalyzerProviderTests.vb (6)
25Path.Combine(TempRoot.Root, "ResolvedRootFolder\test\test.dll"), 26Path.Combine(TempRoot.Root, "ResolvedShellFolder\test\test.dll"), 27Path.Combine(TempRoot.Root, "InstallPath\test\test.dll") 42Path.Combine(TempRoot.Root, "InstallPath\installPath1"), 43Path.Combine(TempRoot.Root, "InstallPath\installPath2"), 44Path.Combine(TempRoot.Root, "InstallPath\installPath3")
ProjectSystemShim\FileChangeWatcherTests.vb (1)
22_tempPath = Path.Combine(TempRoot.Root, Path.GetRandomFileName())
ProjectSystemShim\VisualStudioProjectTests\AnalyzerReferenceTests.vb (50)
108Path.Combine(TempRoot.Root, "RazorVsix", "Microsoft.CodeAnalysis.Razor.Compiler.SourceGenerators.dll"), 109Path.Combine(TempRoot.Root, "RazorVsix", "VsixDependency1.dll"), 110Path.Combine(TempRoot.Root, "RazorVsix", "VsixDependency2.dll") 114Path.Combine(TempRoot.Root, "File.dll") 123project.AddAnalyzerReference(Path.Combine(TempRoot.Root, "Sdks", "Microsoft.NET.Sdk.Razor", "source-generators", "SdkDependency1.dll")) 128project.RemoveAnalyzerReference(Path.Combine(TempRoot.Root, "Sdks", "Microsoft.NET.Sdk.Razor", "source-generators", "SdkDependency1.dll")) 133project.AddAnalyzerReference(Path.Combine(TempRoot.Root, "Sdks", "Microsoft.NET.Sdk.Razor", "source-generators", "SdkDependency1.dll")) 134project.AddAnalyzerReference(Path.Combine(TempRoot.Root, "Sdks", "Microsoft.NET.Sdk.Razor", "source-generators", "Microsoft.CodeAnalysis.Razor.Compiler.SourceGenerators.dll")) 135project.AddAnalyzerReference(Path.Combine(TempRoot.Root, "Some other directory", "Microsoft.CodeAnalysis.Razor.Compiler.SourceGenerators.dll")) 136project.AddAnalyzerReference(Path.Combine(TempRoot.Root, "Dir", "File.dll")) 140Path.Combine(TempRoot.Root, "RazorVsix", "Microsoft.CodeAnalysis.Razor.Compiler.SourceGenerators.dll"), 141Path.Combine(TempRoot.Root, "RazorVsix", "VsixDependency1.dll"), 142Path.Combine(TempRoot.Root, "RazorVsix", "VsixDependency2.dll"), 143Path.Combine(TempRoot.Root, "Some other directory", "Microsoft.CodeAnalysis.Razor.Compiler.SourceGenerators.dll"), 144Path.Combine(TempRoot.Root, "Dir", "File.dll") 150Sub() project.AddAnalyzerReference(Path.Combine(TempRoot.Root, "Sdks", "Microsoft.NET.Sdk.Razor", "source-generators", "Microsoft.CodeAnalysis.Razor.Compiler.SourceGenerators.dll"))) 154Path.Combine(TempRoot.Root, "RazorVsix", "Microsoft.CodeAnalysis.Razor.Compiler.SourceGenerators.dll"), 155Path.Combine(TempRoot.Root, "RazorVsix", "VsixDependency1.dll"), 156Path.Combine(TempRoot.Root, "RazorVsix", "VsixDependency2.dll"), 157Path.Combine(TempRoot.Root, "Some other directory", "Microsoft.CodeAnalysis.Razor.Compiler.SourceGenerators.dll"), 158Path.Combine(TempRoot.Root, "Dir", "File.dll") 162project.RemoveAnalyzerReference(Path.Combine(TempRoot.Root, "Sdks", "Microsoft.NET.Sdk.Razor", "source-generators", "SdkDependency1.dll")) 163project.RemoveAnalyzerReference(Path.Combine(TempRoot.Root, "Sdks", "Microsoft.NET.Sdk.Razor", "source-generators", "Microsoft.CodeAnalysis.Razor.Compiler.SourceGenerators.dll")) 164project.RemoveAnalyzerReference(Path.Combine(TempRoot.Root, "Some other directory", "Microsoft.CodeAnalysis.Razor.Compiler.SourceGenerators.dll")) 168Path.Combine(TempRoot.Root, "Dir", "File.dll") 174Sub() project.RemoveAnalyzerReference(Path.Combine(TempRoot.Root, "Sdks", "Microsoft.NET.Sdk.Razor", "source-generators", "Microsoft.CodeAnalysis.Razor.Compiler.SourceGenerators.dll"))) 178Path.Combine(TempRoot.Root, "Dir", "File.dll") 190Path.Combine(TempRoot.Root, "File.dll") 199Dim path1 = Path.Combine(TempRoot.Root, "Sdks", "Microsoft.NET.Sdk.Razor", "source-generators", "Microsoft.NET.Sdk.Razor.SourceGenerators.dll") 200Dim path2 = Path.Combine(TempRoot.Root, "Sdks", "Microsoft.NET.Sdk.Razor", "source-generators", "SdkDependency1.dll") 218project.AddAnalyzerReference(Path.Combine(TempRoot.Root, "Sdks", "Microsoft.NET.Sdk", "codestyle", "cs", "Microsoft.CodeAnalysis.CodeStyle.dll")) 219project.AddAnalyzerReference(Path.Combine(TempRoot.Root, "Sdks", "Microsoft.NET.Sdk", "codestyle", "cs", "Microsoft.CodeAnalysis.CodeStyle.Fixes.dll")) 220project.AddAnalyzerReference(Path.Combine(TempRoot.Root, "Sdks", "Microsoft.NET.Sdk", "codestyle", "cs", "Microsoft.CodeAnalysis.CSharp.CodeStyle.dll")) 221project.AddAnalyzerReference(Path.Combine(TempRoot.Root, "Sdks", "Microsoft.NET.Sdk", "codestyle", "cs", "Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes.dll")) 230project.AddAnalyzerReference(Path.Combine(TempRoot.Root, "Dir", "File.dll")) 235Path.Combine(TempRoot.Root, "Dir", "File.dll") 239project.RemoveAnalyzerReference(Path.Combine(TempRoot.Root, "Sdks", "Microsoft.NET.Sdk", "codestyle", "cs", "Microsoft.CodeAnalysis.CodeStyle.dll")) 240project.RemoveAnalyzerReference(Path.Combine(TempRoot.Root, "Sdks", "Microsoft.NET.Sdk", "codestyle", "cs", "Microsoft.CodeAnalysis.CodeStyle.Fixes.dll")) 241project.RemoveAnalyzerReference(Path.Combine(TempRoot.Root, "Sdks", "Microsoft.NET.Sdk", "codestyle", "cs", "Microsoft.CodeAnalysis.CSharp.CodeStyle.dll")) 242project.RemoveAnalyzerReference(Path.Combine(TempRoot.Root, "Sdks", "Microsoft.NET.Sdk", "codestyle", "cs", "Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes.dll")) 259project.AddAnalyzerReference(Path.Combine(TempRoot.Root, "Sdks", "Microsoft.NET.Sdk", "codestyle", "vb", "Microsoft.CodeAnalysis.CodeStyle.dll")) 260project.AddAnalyzerReference(Path.Combine(TempRoot.Root, "Sdks", "Microsoft.NET.Sdk", "codestyle", "vb", "Microsoft.CodeAnalysis.CodeStyle.Fixes.dll")) 261project.AddAnalyzerReference(Path.Combine(TempRoot.Root, "Sdks", "Microsoft.NET.Sdk", "codestyle", "vb", "Microsoft.CodeAnalysis.VisualBasic.CodeStyle.dll")) 262project.AddAnalyzerReference(Path.Combine(TempRoot.Root, "Sdks", "Microsoft.NET.Sdk", "codestyle", "vb", "Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes.dll")) 271project.AddAnalyzerReference(Path.Combine(TempRoot.Root, "Dir", "File.dll")) 276Path.Combine(TempRoot.Root, "Dir", "File.dll") 279project.RemoveAnalyzerReference(Path.Combine(TempRoot.Root, "Sdks", "Microsoft.NET.Sdk", "codestyle", "vb", "Microsoft.CodeAnalysis.CodeStyle.dll")) 280project.RemoveAnalyzerReference(Path.Combine(TempRoot.Root, "Sdks", "Microsoft.NET.Sdk", "codestyle", "vb", "Microsoft.CodeAnalysis.CodeStyle.Fixes.dll")) 281project.RemoveAnalyzerReference(Path.Combine(TempRoot.Root, "Sdks", "Microsoft.NET.Sdk", "codestyle", "vb", "Microsoft.CodeAnalysis.VisualBasic.CodeStyle.dll")) 282project.RemoveAnalyzerReference(Path.Combine(TempRoot.Root, "Sdks", "Microsoft.NET.Sdk", "codestyle", "vb", "Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes.dll"))
ProjectSystemShim\VisualStudioRuleSetTests.vb (1)
25_tempPath = Path.Combine(TempRoot.Root, Path.GetRandomFileName())
Roslyn.VisualStudio.Next.UnitTests (15)
Remote\SnapshotSerializationTests.cs (12)
59.AddAnalyzerReference(new AnalyzerFileReference(Path.Combine(TempRoot.Root, "path1"), new TestAnalyzerAssemblyLoader())) 63.WithAnalyzerReferences([new AnalyzerFileReference(Path.Combine(TempRoot.Root, "path2"), new TestAnalyzerAssemblyLoader())]) 392var reference = new AnalyzerFileReference(Path.Combine(TempRoot.Root, "missing_reference"), new MissingAnalyzerLoader()); 406var reference = new AnalyzerFileReference(Path.Combine(TempRoot.Root, "missing_reference"), new MissingAnalyzerLoader()); 417using var tempRoot = new TempRoot(); 438using var tempRoot = new TempRoot(); 459using var tempRoot = new TempRoot(); 478using var temp = new TempRoot(); 504var analyzer = new AnalyzerFileReference(Path.Combine(TempRoot.Root, "missing_reference"), new MissingAnalyzerLoader()); 538var analyzer = serializer.CreateChecksum(new AnalyzerFileReference(Path.Combine(TempRoot.Root, "missing"), new MissingAnalyzerLoader()), CancellationToken.None); 560using var tempRoot = new TempRoot(); 693private static AnalyzerFileReference CreateShadowCopiedAnalyzerReference(TempRoot tempRoot)
Services\ServiceHubServicesTests.cs (3)
345using var tempRoot = new TempRoot(); 433assemblyPath: Path.Combine(TempRoot.Root, "Test.dll"), 772assemblyPath: Path.Combine(TempRoot.Root, "Test.dll"),
VBCSCompiler.UnitTests (4)
BuildServerConnectionTests.cs (1)
20internal TempRoot TempRoot { get; } = new TempRoot();
CompilerServerApiTest.cs (1)
113using var temp = new TempRoot();
TouchedFileLoggingTests.cs (1)
27private readonly string _baseDirectory = TempRoot.Root;
VBCSCompilerServerTests.cs (1)
27public TempRoot TempRoot { get; } = new TempRoot();