639 references to Path
InteractiveHost.UnitTests (4)
InteractiveHostCoreInitTests.cs (1)
75
AssertEx.AssertEqualToleratingWhitespaceDifferences(PrintSearchPaths(srcDir.
Path
), output);
InteractiveHostDesktopInitTests.cs (1)
50
AssertEx.AssertEqualToleratingWhitespaceDifferences(PrintSearchPaths(srcDir.
Path
), output);
InteractiveHostDesktopTests.cs (2)
706
rspFile.WriteAllText($"/lib:{directory1.
Path
} /r:Assembly2.dll {initFile.Path}");
720
var expectedSearchPaths = PrintSearchPaths(fxDir, directory1.
Path
);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (16)
CopyRefAssemblyTests.cs (2)
35
SourcePath = Path.Combine(dir.
Path
, "does_not_exist.dll")
66
var dest = Path.Combine(dir.
Path
, "dest.dll");
DotNetSdkTests.cs (8)
28
var root1 = Path.GetFullPath(ProjectDir.
Path
+ Path.DirectorySeparatorChar);
29
var root2 = Path.GetFullPath(sourcePackageDir.
Path
+ Path.DirectorySeparatorChar);
38
var sourceLinkJsonPath = Path.Combine(ObjDir.
Path
, ProjectName + ".sourcelink.json");
432
Path.Combine(ProjectDir.
Path
, ".editorconfig"),
493
Path.Combine(ProjectDir.
Path
, ".editorconfig"),
528
Path.Combine(ProjectDir.
Path
, ".editorconfig"),
573
var dir = Directory.GetParent(ProjectDir.
Path
);
653
Path.Combine(ProjectDir.
Path
, ".editorconfig"),
TestUtilities\DotNetSdkTestBase.cs (6)
196
Assert.True(File.Exists(Path.Combine(ObjDir.
Path
, "project.assets.json")));
197
Assert.True(File.Exists(Path.Combine(ObjDir.
Path
, ProjectFileName + ".nuget.g.props")));
198
Assert.True(File.Exists(Path.Combine(ObjDir.
Path
, ProjectFileName + ".nuget.g.targets")));
221
var evaluationResultsFile = Path.Combine(OutDir.
Path
, "EvaluationResult.txt");
223
EmitTestHelperProps(ObjDir.
Path
, ProjectFileName, customProps, uploadUtil);
224
EmitTestHelperTargets(ObjDir.
Path
, evaluationResultsFile, ProjectFileName, expressions, customTargets, uploadUtil);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (301)
CommandLineTestBase.cs (2)
42
File.WriteAllBytes(Path.Combine(dir.
Path
, "mscorlib.dll"), Net461.References.mscorlib.ImageBytes);
43
return dir.
Path
;
CommandLineTests.cs (282)
147
var cmd = CreateCSharpCompiler(null, dir.
Path
, new[] { "/nologo", "/errorlog:errorlog", $"/doc:{docName}", "/warnaserror", src.Path });
154
string exePath = Path.Combine(dir.
Path
, "temp.exe");
167
var cmd = CreateCSharpCompiler(null, dir.
Path
, new[] { "/nologo", "/t:library", "/preferreduilang:en", $"/doc:{docName}", src.Path });
174
var xmlPath = Path.Combine(dir.
Path
, docName);
196
var cmd = CreateCSharpCompiler(null, dir.
Path
, new[] {
232
var cmd = CreateCSharpCompiler(null, dir.
Path
, new[] {
284
var cmd = CreateCSharpCompiler(null, dir.
Path
, new[] {
320
var cmd = CreateCSharpCompiler(null, dir.
Path
, new[] {
333
$"error CS8700: Multiple analyzer config files cannot be in the same directory ('{dir.
Path
}').",
344
var cmd = CreateCSharpCompiler(null, dir.
Path
, new[] { "/nologo", src.Path });
353
var result = ProcessUtilities.Run(Path.Combine(dir.
Path
, "sjis.exe"), arguments: "", workingDirectory: dir.
Path
);
355
Assert.Equal("星野 八郎太", File.ReadAllText(Path.Combine(dir.
Path
, "output.txt"), Encoding.GetEncoding(932)));
364
var cmd = CreateCSharpCompiler(null, dir.
Path
, new[] { "/nologo", "/codepage:932", src.Path });
373
var result = ProcessUtilities.Run(Path.Combine(dir.
Path
, "sjis.exe"), arguments: "", workingDirectory: dir.
Path
);
375
Assert.Equal("星野 八郎太", File.ReadAllText(Path.Combine(dir.
Path
, "output.txt"), Encoding.GetEncoding(932)));
421
string basePath = baseDir.
Path
;
434
{ Path.Combine(dirSubDir.
Path
, @"b.rsp"), @"
509
var parser = CSharpCommandLineParser.Default.Parse(new[] { "file.cs", $"-out:{parentDir.
Path
}", "/noSdkPath" }, parentDir.
Path
, null);
527
var csc = CreateCSharpCompiler(null, dir.
Path
, new[] { "/nologo", "/preferreduilang:en", "/nosdkpath", "/r:System.dll", "a.cs" });
566
args = DefaultParse(new[] { "/main:Test", "a.cs" }, folder.
Path
);
570
args = DefaultParse(new[] { "/main:\"Test\"", "a.cs" }, folder.
Path
);
574
args = DefaultParse(new[] { "/main:\"Test.Class1\"", "a.cs" }, folder.
Path
);
578
args = DefaultParse(new[] { "/m:Test", "a.cs" }, folder.
Path
);
582
args = DefaultParse(new[] { "/m:\"Test\"", "a.cs" }, folder.
Path
);
586
args = DefaultParse(new[] { "/m:\"Test.Class1\"", "a.cs" }, folder.
Path
);
591
args = DefaultParse(new[] { "/m:\"решения.Class1\"", "a.cs" }, folder.
Path
);
603
args = DefaultParse(new[] { "-debug+/debug:portable" }, folder.
Path
);
635
int exitCode = CreateCSharpCompiler(null, folder.
Path
, new[] { "/nologo", "/preferreduilang:en", "/t:library", @"/recurse:.", "/out:abc.dll" }).Run(outWriter);
640
exitCode = CreateCSharpCompiler(null, folder.
Path
, new[] { "/nologo", "/preferreduilang:en", "/t:library", @"/recurse:. ", "/out:abc.dll" }).Run(outWriter);
645
exitCode = CreateCSharpCompiler(null, folder.
Path
, new[] { "/nologo", "/preferreduilang:en", "/t:library", @"/recurse: . ", "/out:abc.dll" }).Run(outWriter);
650
exitCode = CreateCSharpCompiler(null, folder.
Path
, new[] { "/nologo", "/preferreduilang:en", "/t:library", @"/recurse:././.", "/out:abc.dll" }).Run(outWriter);
657
args = DefaultParse(new[] { @"/recurse:*.cp*", @"/recurse:a\*.c*", @"/out:a.dll" }, folder.
Path
);
660
AssertEx.Equal(new[] { folder.
Path
+ @"\c.cpp", folder.
Path
+ @"\B\B_c.cpx", folder.
Path
+ @"\a\A_a.cs", folder.
Path
+ @"\a\A_b.cs", }, resolvedSourceFiles);
662
args = DefaultParse(new[] { @"/recurse:.\\\\\\*.cs", @"/out:a.dll" }, folder.
Path
);
667
args = DefaultParse(new[] { @"/recurse:.////*.cs", @"/out:a.dll" }, folder.
Path
);
1812
var csc = CreateCSharpCompiler(null, dir.
Path
, new[] { "/langversion:?" });
2186
var csc = CreateCSharpCompiler(null, dir.
Path
, new[] { "/nologo", "/debug:embedded", "/sourcelink:sl.json", "a.cs" });
2190
var peStream = File.OpenRead(Path.Combine(dir.
Path
, "a.exe"));
2218
var csc = CreateCSharpCompiler(null, dir.
Path
, new[] { "/nologo", "/debug:portable", "/sourcelink:sl.json", "a.cs" });
2222
var pdbStream = File.OpenRead(Path.Combine(dir.
Path
, "a.pdb"));
2247
var csc = CreateCSharpCompiler(null, dir.
Path
, new[] { "/nologo", "/debug:full", "/sourcelink:sl.json", "a.cs" });
2251
var pdbStream = File.OpenRead(Path.Combine(dir.
Path
, "a.pdb"));
2390
var csc = CreateCSharpCompiler(null, dir.
Path
, new[] { "/nologo", debugSwitch, embedSwitch, "embed.cs", "embed2.cs" });
2414
using (var peReader = new PEReader(File.OpenRead(Path.Combine(dir.
Path
, "embed.exe"))))
2421
MetadataReaderProvider.FromPortablePdbStream(File.OpenRead(Path.Combine(dir.
Path
, "embed.pdb"))))
2449
symReader = SymReaderFactory.CreateReader(File.OpenRead(Path.Combine(dir.
Path
, "embed.pdb")));
2668
var csc = CreateCSharpCompiler(null, dir.
Path
, new[] { "/nologo", "/preferreduilang:en", "/a:missing.dll", "a.cs" });
2691
var csc = CreateCSharpCompiler(null, dir.
Path
, new[] { "/nologo", "/preferreduilang:en", "/t:library", "/a:" + typeof(object).Assembly.Location, "a.cs" });
2808
var csc = CreateCSharpCompiler(null, dir.
Path
, new[] { "/nologo", "/preferreduilang:en", "/t:library", "/a:" + Assembly.GetExecutingAssembly().Location, "a.cs" });
2844
var csc = CreateCSharpCompiler(null, dir.
Path
, new[] { "/nologo", "/preferreduilang:en", "/t:library", "/a:" + Assembly.GetExecutingAssembly().Location, "a.cs", "/ruleset:" + ruleSetFile.Path });
2877
var csc = CreateCSharpCompiler(null, dir.
Path
,
2888
csc = CreateCSharpCompiler(null, dir.
Path
,
2924
dir.
Path
);
2956
dir.
Path
);
2989
dir.
Path
);
3022
dir.
Path
);
3056
dir.
Path
);
3090
dir.
Path
);
3124
dir.
Path
);
3158
dir.
Path
);
3193
dir.
Path
);
3228
dir.
Path
);
3252
dir.
Path
);
3285
dir.
Path
);
3318
dir.
Path
);
3352
dir.
Path
);
3396
var csc = CreateCSharpCompiler(null, dir.
Path
,
3407
csc = CreateCSharpCompiler(null, dir.
Path
,
3465
var csc = CreateCSharpCompiler(null, dir.
Path
, new[] { "/nologo", "/preferreduilang:en", "/t:library", "a.cs" });
3475
" + Path.GetFullPath(Path.Combine(dir.
Path
, @"..\b.cs")) + @"(40,13): error CS0103: The name 'Goo' does not exist in the current context
3476
" + Path.GetFullPath(Path.Combine(dir.
Path
, @"..\b.cs")) + @"(50,13): error CS0103: The name 'Goo' does not exist in the current context
3493
csc = CreateCSharpCompiler(null, dir.
Path
, new[] { "/nologo", "/preferreduilang:en", "/t:library", "/fullpaths", "a.cs" });
3498
" + Path.Combine(dir.
Path
, @"a.cs") + @"(8,13): error CS0103: The name 'Goo' does not exist in the current context
3502
" + Path.GetFullPath(Path.Combine(dir.
Path
, @"..\b.cs")) + @"(40,13): error CS0103: The name 'Goo' does not exist in the current context
3503
" + Path.GetFullPath(Path.Combine(dir.
Path
, @"..\b.cs")) + @"(50,13): error CS0103: The name 'Goo' does not exist in the current context
3510
" + Path.Combine(dir.
Path
, @"a.cs") + @"(32,13): error CS0103: The name 'Goo' does not exist in the current context
4299
var csc = CreateCSharpCompiler(null, dir.
Path
, new[] { "/modulename:hocusPocus ", "/out:" + exeName + " ", file1.Path });
4307
Assert.Equal(1, Directory.EnumerateFiles(dir.
Path
, exeName).Count());
4309
using (var metadata = ModuleMetadata.CreateFromImage(File.ReadAllBytes(Path.Combine(dir.
Path
, "aa.exe"))))
4486
var parsedArgs = DefaultParse(new[] { @"/lib:lib1", @"/libpath:lib2", @"/libpaths:lib3", "a.cs" }, dir.
Path
, sdkDirectory: sdkDirectory);
4490
lib1.
Path
,
4491
lib2.
Path
,
4492
lib3.
Path
5778
string tempDir = Temp.CreateDirectory().
Path
;
5814
string tempDir = Temp.CreateDirectory().
Path
;
5847
string tempDir = Temp.CreateDirectory().
Path
;
5881
string tempDir = Temp.CreateDirectory().
Path
;
5893
string tempDir = Temp.CreateDirectory().
Path
;
6731
var csc = CreateCSharpCompiler(null, dir.
Path
, new[] { "/nologo", "/preferreduilang:en", "/target:exe", "a.cs" });
6753
var csc = CreateCSharpCompiler(null, dir.
Path
, new[] { "/nologo", "/target:exe", "a.cs" });
6777
var csc = CreateCSharpCompiler(null, dir.
Path
, new[] { "/nologo", "/target:library", "a.cs" });
6800
var csc = CreateCSharpCompiler(null, dir.
Path
, new[] { "/target:library", "/preferreduilang:en", "a.cs" });
6858
var csc = CreateCSharpCompiler(null, dir.
Path
, commandLineArguments.Concat(new[] { inputName1, inputName2 }).ToArray());
6866
Assert.Equal(1, Directory.EnumerateFiles(dir.
Path
, "*" + PathUtilities.GetExtension(expectedOutputName)).Count());
6867
Assert.Equal(1, Directory.EnumerateFiles(dir.
Path
, expectedOutputName).Count());
6869
using (var metadata = ModuleMetadata.CreateFromImage(File.ReadAllBytes(Path.Combine(dir.
Path
, expectedOutputName))))
6902
var csc = CreateCSharpCompiler(null, dir.
Path
, new[] { "/nologo", "/preferreduilang:en", "/r:missing.dll", "a.cs" });
6978
var csc = CreateCSharpCompiler(null, dir.
Path
, commandLineArguments.Concat(new[] { fileName }).ToArray());
7001
var csc = CreateCSharpCompiler(null, dir.
Path
, new[] { fileName, "/preferreduilang:en", "/target:exe", "/out:sub\\a.exe" });
7005
Assert.Contains("error CS2012: Cannot open '" + dir.
Path
+ "\\sub\\a.exe' for writing", outWriter.ToString(), StringComparison.Ordinal);
7027
var csc = CreateCSharpCompiler(null, dir.
Path
, new[] { fileName, "/preferreduilang:en", "/target:exe", "/out:sub\\" });
7055
var csc = CreateCSharpCompiler(null, dir.
Path
, new[] { fileName, "/preferreduilang:en", "/target:exe", "/out:sub\\ " });
7083
var csc = CreateCSharpCompiler(null, dir.
Path
, new[] { fileName, "/preferreduilang:en", "/target:exe", "/out:aaa:\\a.exe" });
7109
var csc = CreateCSharpCompiler(null, dir.
Path
, new[] { fileName, "/preferreduilang:en", "/target:exe", "/out: " });
7143
var cmd = CreateCSharpCompiler(null, dir.
Path
, new[] { "/nologo", "a.cs", "/keyfile:key.snk", });
7165
var cmd = CreateCSharpCompiler(null, dir.
Path
, new[] { "/nologo", "a.cs", "/keycontainer:bbb", });
7187
var cmd = CreateCSharpCompiler(null, dir.
Path
, new[] { "/nologo", "a.cs", "/keyFile:key.snk", "/features:UseLegacyStrongNameProvider" });
7207
var cmd = CreateCSharpCompiler(null, dir.
Path
, new[] { "a.cs", "/features:disable-length-based-switch" });
7211
cmd = CreateCSharpCompiler(null, dir.
Path
, new[] { "a.cs" });
7302
var output = ProcessUtilities.RunAndGetOutput(s_CSharpCompilerExecutable, $"/nologo /t:library \"{file}\"", startFolder: dir.
Path
);
7305
output = ProcessUtilities.RunAndGetOutput(s_CSharpCompilerExecutable, $"/nologo /preferreduilang:en /t:library /codepage:20127 \"{file}\"", expectedRetCode: 1, startFolder: dir.
Path
); // 20127: US-ASCII
7583
csc = CreateCSharpCompiler(null, dir.
Path
, new[]
7593
csc = CreateCSharpCompiler(null, dir.
Path
, new[]
7607
IntPtr lib = LoadLibraryEx(Path.Combine(dir.
Path
, outputFileName), IntPtr.Zero, 0x00000002);
8201
csc = CreateCSharpCompiler(null, Temp.CreateDirectory().
Path
, new[] { source, "/preferreduilang:en" });
8228
csc = CreateCSharpCompiler(null, Temp.CreateDirectory().
Path
, new[] { source, "/preferreduilang:en", "/fullpaths" });
8559
int exitCode1 = CreateCSharpCompiler(null, dir.
Path
, new[] { "/debug:full", "/out:Program.exe", source1.Path }).Run(outWriter);
8565
int exitCode2 = CreateCSharpCompiler(null, dir.
Path
, new[] { "/debug:full", "/out:Program.exe", source2.Path }).Run(outWriter);
8576
int exitCode3 = CreateCSharpCompiler(null, dir.
Path
, new[] { "/debug:full", "/out:Program.exe", source3.Path }).Run(outWriter);
8621
int exitCode = CreateCSharpCompiler(null, dir.
Path
, new[] { "/target:library", "/debug:full", libSrc.Path }).Run(outWriter);
8638
AssertEx.Equal(new[] { "Lib.cs", "Lib.dll", "Lib.pdb" }, Roslyn.Utilities.EnumerableExtensions.Order(Directory.GetFiles(dir.
Path
).Select(p => Path.GetFileName(p))));
8695
AssertEx.Equal(new[] { "Lib.cs", "Lib.dll", "Lib.pdb" }, Roslyn.Utilities.EnumerableExtensions.Order(Directory.GetFiles(dir.
Path
).Select(p => Path.GetFileName(p))));
8703
Directory.Delete(dir.
Path
, recursive: false);
8728
int exitCode = CreateCSharpCompiler(null, dir.
Path
, new[] { "/target:library", "/preferreduilang:en", libSrc.Path }).Run(outWriter);
8736
AssertEx.Equal(new[] { "Lib.cs", "Lib.dll" }, Roslyn.Utilities.EnumerableExtensions.Order(Directory.GetFiles(dir.
Path
).Select(p => Path.GetFileName(p))));
8747
int exitCode = CreateCSharpCompiler(null, dir.
Path
, new[] { "/target:library", "/preferreduilang:en", libSrc.Path }).Run(outWriter);
8748
Assert.Contains($"error CS2012: Cannot open '{libDll.
Path
}' for writing", outWriter.ToString());
8769
var srcPath = MakeTrivialExe(Temp.CreateDirectory().
Path
);
8791
var srcPath = MakeTrivialExe(Temp.CreateDirectory().
Path
);
8814
var srcPath = MakeTrivialExe(Temp.CreateDirectory().
Path
);
8838
var srcPath = MakeTrivialExe(Temp.CreateDirectory().
Path
);
9072
TestCS2002(commandLineArgs, tempDir.
Path
, 0, aWrnString);
9078
TestCS2002(commandLineArgs, tempDir.
Path
, 0, warnings);
9084
TestCS2002(commandLineArgs, tempDir.
Path
, 0, AWrnString);
9090
TestCS2002(commandLineArgs, tempDir.
Path
, 0, String.Empty);
9096
TestCS2002(commandLineArgs, tempParentDir.
Path
, 0, tmpDiraString);
9101
TestCS2002(commandLineArgs, tempParentDir.
Path
, 0, tmpDiraString);
9106
TestCS2002(commandLineArgs, tempParentDir.
Path
, 0, tmpDiraString);
9111
TestCS2002(commandLineArgs, tempParentDir.
Path
, 0, tmpDiraString);
9115
TestCS2002(commandLineArgs, tempParentDir.
Path
, 0, tmpDiraString);
9121
var formattedcs1504Str = String.Format(cs1504, PathUtilities.CombineAbsoluteAndRelativePaths(tempParentDir.
Path
, "tmpDir\a.cs"), "Illegal characters in path.");
9122
TestCS2002(commandLineArgs, tempParentDir.
Path
, 1, formattedcs1504Str);
9130
TestCS2002(commandLineArgs, tempParentDir.
Path
, 1, (string[])null, parseDiags);
9137
TestCS2002(commandLineArgs, tempParentDir.
Path
, 1, (string[])null, parseDiags);
9141
var formattedcs1504 = String.Format(cs1504, PathUtilities.CombineAbsoluteAndRelativePaths(tempParentDir.
Path
, @":a.cs"), @"The given path's format is not supported.");
9142
TestCS2002(commandLineArgs, tempParentDir.
Path
, 1, formattedcs1504);
9145
System.IO.Directory.Delete(tempParentDir.
Path
, true);
9686
args = DefaultParse(new[] { "/additionalfile:web*.config", "a.cs" }, baseDir.
Path
);
9689
Assert.Equal(Path.Combine(baseDir.
Path
, "web1.config"), args.AdditionalFiles[0].Path);
9690
Assert.Equal(Path.Combine(baseDir.
Path
, "web2.config"), args.AdditionalFiles[1].Path);
9691
Assert.Equal(Path.Combine(baseDir.
Path
, "web3.config"), args.AdditionalFiles[2].Path);
9907
Directory.Delete(dir.
Path
, true);
9965
Directory.Delete(dir.
Path
, true);
10030
Directory.Delete(dir.
Path
, true);
10135
Directory.Delete(dir.
Path
, true);
10231
Directory.Delete(dir.
Path
, true);
10267
Directory.Delete(dir.
Path
, true);
10321
var csc = CreateCSharpCompiler(null, sourceDir.
Path
, args, analyzers: analyzers, generators: generators, driverCache: driverCache);
11359
var csc = CreateCSharpCompiler(null, dir.
Path
, args);
11363
var exePath = Path.Combine(dir.
Path
, "a.exe");
11375
var pdbPath = Path.Combine(dir.
Path
, "a.pdb");
11382
var pdbPath = Path.Combine(dir.
Path
, "a.pdb");
11383
AssertPdbEmit(dir, pdbPath, @"q:\a.pdb", $@"/pathmap:{dir.
Path
}=q:\");
11389
var pdbPath = Path.Combine(dir.
Path
, "a.pdb");
11390
AssertPdbEmit(dir, pdbPath, @"q:\a.pdb", $@"/pathmap:{dir.
Path
}=q:\", "/deterministic");
11397
var pdbPath = Path.Combine(dir.
Path
, @"pdb\a.pdb");
11398
AssertPdbEmit(dir, pdbPath, @"q:\pdb\a.pdb", $@"/pathmap:{dir.
Path
}=q:\");
11404
var pdbPath = Path.Combine(dir.
Path
, "a.pdb");
11411
var pdbPath = Path.Combine(dir.
Path
, "a.pdb");
11412
AssertPdbEmit(dir, pdbPath, @"/a.pdb", $@"/pathmap:{dir.
Path
}=/");
11418
var pdbPath = Path.Combine(dir.
Path
, "a.pdb");
11419
AssertPdbEmit(dir, pdbPath, "/goo/a.pdb", $"/pathmap:{dir.
Path
}=/goo,{dir.
Path
}{PathUtilities.DirectorySeparatorChar}=/bar");
11484
var output = ProcessUtilities.RunAndGetOutput(csc32exe.Path, $@"/nologo /debug:full /deterministic /out:Program.exe /pathmap:""{dir32.
Path
}""=X:\ ""{sourceFile.Path}""", expectedRetCode: 0, startFolder: dir32.
Path
);
11487
output = ProcessUtilities.RunAndGetOutput(s_CSharpCompilerExecutable, $@"/nologo /debug:full /deterministic /out:Program.exe /pathmap:""{dir64.
Path
}""=X:\ ""{sourceFile.Path}""", expectedRetCode: 0, startFolder: dir64.
Path
);
11537
var csc = CreateCSharpCompiler(null, dir.
Path
,
11543
var exe = Path.Combine(dir.
Path
, "a.exe");
11552
var doc = Path.Combine(dir.
Path
, "doc.xml");
11573
var output = ProcessUtilities.RunAndGetOutput(exe, startFolder: dir.
Path
);
11576
var refDll = Path.Combine(refDir.
Path
, "a.dll");
11588
CleanupAllGeneratedFiles(dir.
Path
);
11589
CleanupAllGeneratedFiles(refDir.
Path
);
11602
var csc = CreateCSharpCompiler(null, dir.
Path
,
11607
var dll = Path.Combine(dir.
Path
, "a.dll");
11610
var refDll = Path.Combine(dir.
Path
, Path.Combine("ref", "a.dll"));
11616
CleanupAllGeneratedFiles(dir.
Path
);
11653
var csc = CreateCSharpCompiler(null, dir.
Path
,
11659
var refDll = Path.Combine(dir.
Path
, "a.dll");
11670
var pdb = Path.Combine(dir.
Path
, "a.pdb");
11673
var doc = Path.Combine(dir.
Path
, "doc.xml");
11701
CleanupAllGeneratedFiles(dir.
Path
);
11762
var result = ProcessUtilities.Run(cscPath, arguments: "/nologo /t:library unknown.cs", workingDirectory: dir.
Path
);
11770
result = ProcessUtilities.Run(cscPath, arguments: "/nologo /t:library unknown.cs", workingDirectory: dir.
Path
);
11789
var result = ProcessUtilities.Run(s_CSharpCompilerExecutable, arguments: $"/nologo /t:library /analyzer:{analyzerFileName} {srcFileName}", workingDirectory: analyzerDir.
Path
);
11990
var cscCopy = Path.Combine(dir.
Path
, "csc.exe");
11998
workingDirectory: dir.
Path
,
12006
result = ProcessUtilities.Run(cscCopy, arguments, workingDirectory: dir.
Path
);
12013
workingDirectory: dir.
Path
,
12030
var csc = CreateCSharpCompiler(null, dir.
Path
, args);
12034
var exePath = Path.Combine(dir.
Path
, "a.exe");
12052
var buildPaths = new BuildPaths(clientDir: "", workingDir: workingDir.
Path
, sdkDir: null, tempDir: tempDir.
Path
);
12781
var cmd = CreateCSharpCompiler(null, dir.
Path
, arguments,
12843
string binaryPath = Path.Combine(dir.
Path
, "temp.dll");
12846
string pdbPath = Path.Combine(dir.
Path
, pdbName);
12849
string xmlDocFilePath = Path.Combine(dir.
Path
, docName);
12889
string binaryPath = Path.Combine(dir.
Path
, "temp.dll");
12892
string pdbPath = Path.Combine(dir.
Path
, pdbName);
12895
string xmlDocFilePath = Path.Combine(dir.
Path
, docName);
12939
string binaryPath = Path.Combine(dir.
Path
, "temp.dll");
12942
string pdbPath = Path.Combine(dir.
Path
, pdbName);
12945
string xmlDocFilePath = Path.Combine(dir.
Path
, docName);
12970
string binaryPath = Path.Combine(dir.
Path
, "temp.dll");
13022
var cmd = CreateCSharpCompiler(null, dir.
Path
, arguments,
13112
var cmd = CreateCSharpCompiler(null, dir.
Path
, args, analyzers: new[] { analyzer });
13148
var cmd = CreateCSharpCompiler(null, dir.
Path
, args, analyzers: new[] { analyzer });
13245
ValidateEmbeddedSources_Portable(new Dictionary<string, string> { { Path.Combine(dir.
Path
, generatorPrefix, $"generatedSource.cs"), generatedSource } }, dir, true);
13249
Directory.Delete(dir.
Path
, true);
13286
ValidateEmbeddedSources_Portable(new Dictionary<string, string> { { Path.Combine(dir.
Path
, generatorPrefix, "generatedSource.cs"), generatedSource } }, dir, true);
13329
{ Path.Combine(dir.
Path
, generator1Prefix, source1Name), source1},
13330
{ Path.Combine(dir.
Path
, generator2Prefix, source2Name), source2},
13335
Directory.Delete(dir.
Path
, true);
13345
var genPath1 = Path.Combine(dir.
Path
, "Microsoft.CodeAnalysis.Test.Utilities", "Roslyn.Test.Utilities.TestGenerators.TestSourceGenerator", "hint1.cs");
13346
var genPath2 = Path.Combine(dir.
Path
, "Microsoft.CodeAnalysis.Test.Utilities", "Roslyn.Test.Utilities.TestGenerators.TestSourceGenerator", "hint2.cs");
13365
using (Stream peStream = File.OpenRead(Path.Combine(dir.
Path
, "checksum.exe")), pdbStream = File.OpenRead(Path.Combine(dir.
Path
, "checksum.pdb")))
13378
Directory.Delete(dir.
Path
, true);
13408
VerifyOutput(dir, src, includeCurrentAssemblyAsAnalyzerReference: false, additionalFlags: new[] { "/generatedfilesout:" + generatedDir.
Path
, "/langversion:preview", "/out:embed.exe" }, generators: new[] { generator }, analyzers: null);
13413
{ Path.Combine(generatedDir.
Path
, generatorPrefix, expectedDir), new() { { expectedFileName, generatedSource } } }
13418
Directory.Delete(dir.
Path
, true);
13434
VerifyOutput(dir, src, includeCurrentAssemblyAsAnalyzerReference: false, additionalFlags: new[] { "/generatedfilesout:" + generatedDir.
Path
, "/langversion:preview", "/out:embed.exe" }, generators: new[] { generator1 }, analyzers: null);
13437
ValidateWrittenSources(new() { { Path.Combine(generatedDir.
Path
, generatorPrefix), new() { { "generatedSource.cs", generatedSource1 } } } });
13442
VerifyOutput(dir, src, includeCurrentAssemblyAsAnalyzerReference: false, additionalFlags: new[] { "/generatedfilesout:" + generatedDir.
Path
, "/langversion:preview", "/out:embed.exe" }, generators: new[] { generator2 }, analyzers: null);
13444
ValidateWrittenSources(new() { { Path.Combine(generatedDir.
Path
, generatorPrefix), new() { { "generatedSource.cs", generatedSource2 } } } });
13448
Directory.Delete(dir.
Path
, true);
13469
VerifyOutput(dir, src, includeCurrentAssemblyAsAnalyzerReference: false, additionalFlags: new[] { "/generatedfilesout:" + generatedDir.
Path
, "/langversion:preview", "/out:embed.exe" }, generators: new[] { generator, generator2 }, analyzers: null);
13476
{ Path.Combine(generatedDir.
Path
, generator1Prefix), new() { { source1Name, source1 } } },
13477
{ Path.Combine(generatedDir.
Path
, generator2Prefix), new() { { source2Name, source2 } } }
13482
Directory.Delete(dir.
Path
, true);
13510
VerifyOutput(dir, src, includeCurrentAssemblyAsAnalyzerReference: false, additionalFlags: new[] { "/generatedfilesout:" + generatedDir.
Path
, "/langversion:preview", "/out:embed.exe" }, generators: new[] { generator }, analyzers: null);
13515
{ Path.Combine(generatedDir.
Path
, generatorPrefix, expectedDir), new() { { generatedFileName, generatedSource } } }
13520
Directory.Delete(dir.
Path
, true);
13529
var snk = Temp.CreateFile("TestKeyPair_", ".snk", dir.
Path
).WriteAllBytes(TestResources.General.snKey);
13531
var virtualSnProvider = new DesktopStrongNameProvider(ImmutableArray.Create(dir.
Path
));
13546
var path = Path.Combine(dir.
Path
, Guid.NewGuid().ToString() + ".dll");
13561
VerifyOutput(dir, src, includeCurrentAssemblyAsAnalyzerReference: false, additionalFlags: new[] { "/generatedfilesout:" + generatedDir.
Path
, "/analyzer:" + gen1, "/analyzer:" + gen2 }.ToArray());
13568
{ Path.Combine(generatedDir.
Path
, "generator", "TestGenerator"), new() { { "generatedSource.cs", "//from version 2.0.0.0" } } }
13586
ValidateWrittenSources(new() { { generatedDir.
Path
, new() } });
13590
Directory.Delete(dir.
Path
, true);
13602
var generatedDirPath = Path.Combine(dir.
Path
, "noexist");
13611
Directory.Delete(dir.
Path
, true);
13627
VerifyOutput(dir, src, includeCurrentAssemblyAsAnalyzerReference: false, additionalFlags: new[] { "/generatedfilesout:" + generatedDir.
Path
, "/langversion:preview", "/out:embed.exe" }, generators: new[] { generator }, analyzers: null);
13630
ValidateWrittenSources(new() { { Path.Combine(generatedDir.
Path
, generatorPrefix), new() { { "generatedSource.cs", generatedSource } } } });
13634
Directory.Delete(dir.
Path
, true);
13703
Directory.Delete(dir.
Path
, true);
13719
VerifyOutput(dir, src, includeCurrentAssemblyAsAnalyzerReference: false, additionalFlags: new[] { "/generatedfilesout:" + generatedDir.
Path
, $"/touchedfiles:{dir.
Path
}/touched", "/langversion:preview", "/out:embed.exe" }, generators: new[] { generator }, analyzers: null);
13721
var touchedFiles = Directory.GetFiles(dir.
Path
, "touched*");
13724
string[] writtenText = File.ReadAllLines(Path.Combine(dir.
Path
, "touched.write"));
13731
Directory.Delete(dir.
Path
, true);
13819
var cmd = CreateCSharpCompiler(null, dir.
Path
, args, generators: new[] { generator });
13879
var cmd = CreateCSharpCompiler(null, dir.
Path
,
13899
var cmd = CreateCSharpCompiler(null, dir.
Path
,
13924
var cmd = CreateCSharpCompiler(null, dir.
Path
,
13944
var cmd = CreateCSharpCompiler(null, dir.
Path
,
13984
Directory.Delete(dir.
Path
, true);
14050
var cmd = CreateCSharpCompiler(null, dir.
Path
, new[] {
14131
var cmd = CreateCSharpCompiler(null, dir.
Path
, new[] {
14345
CleanupAllGeneratedFiles(srcDirectory.
Path
);
14501
var generatorPath = Path.Combine(directory.
Path
, "generator.dll");
14537
Directory.CreateDirectory(Path.GetDirectoryName(Path.Combine(srcDirectory.
Path
, additionalFilePath1)));
14538
Directory.CreateDirectory(Path.GetDirectoryName(Path.Combine(srcDirectory.
Path
, additionalFilePath2)));
14544
string path2 = additionalFile2?.Path ?? Path.Combine(srcDirectory.
Path
, additionalFilePath2);
14561
CleanupAllGeneratedFiles(srcDirectory.
Path
);
SarifErrorLoggerTests.cs (9)
42
var errorLogFile = Path.Combine(errorLogDir.
Path
, "ErrorLog.txt");
73
var errorLogFile = Path.Combine(errorLogDir.
Path
, "ErrorLog.txt");
107
var errorLogFile = Path.Combine(errorLogDir.
Path
, "ErrorLog.txt");
139
var errorLogFile = Path.Combine(outputDir.
Path
, "ErrorLog.txt");
140
var outputFilePath = Path.Combine(outputDir.
Path
, "test.dll");
176
var errorLogFile = Path.Combine(errorLogDir.
Path
, "ErrorLog.txt");
211
var errorLogFile = Path.Combine(errorLogDir.
Path
, "ErrorLog.txt");
246
var errorLogFile = Path.Combine(errorLogDir.
Path
, "ErrorLog.txt");
281
var errorLogFile = Path.Combine(errorLogDir.
Path
, "ErrorLog.txt");
SarifV2ErrorLoggerTests.cs (3)
383
var errorLogFile = Path.Combine(errorLogDir.
Path
, "ErrorLog.txt");
457
var errorLogFile = Path.Combine(errorLogDir.
Path
, "ErrorLog.txt");
519
var errorLogFile = Path.Combine(errorLogDir.
Path
, "ErrorLog.txt");
TouchedFileLoggingTests.cs (5)
41
var touchedBase = Path.Combine(touchedDir.
Path
, "touched");
69
var touchedBase = Path.Combine(touchedDir.
Path
, "touched");
116
var touchedBase = Path.Combine(touchedDir.
Path
, "touched");
155
var touchedBase = Path.Combine(touchedDir.
Path
, "touched");
162
"/touchedfiles:" + touchedDir.
Path
+ "\\touched",
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Workspaces\WorkspaceTests_EditorFeatures.cs (2)
1071
var analyzerConfigPath = PathUtilities.CombineAbsoluteAndRelativePaths(Temp.CreateDirectory().
Path
, ".editorconfig");
1308
var analyzerConfigDocFilePath = PathUtilities.CombineAbsoluteAndRelativePaths(Temp.CreateDirectory().
Path
, ".editorconfig");
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (5)
Emit\CompilationEmitTests.cs (2)
4629
var dllPath = Path.Combine(tmpDir.
Path
, "assemblyname.dll");
4630
var pdbPath = Path.Combine(tmpDir.
Path
, "assemblyname.pdb");
Emit\DesktopStrongNameProviderTests.cs (3)
23
var provider = new DesktopStrongNameProvider(tempPath: tempDir.
Path
);
24
Assert.Equal(tempDir.
Path
, provider.FileSystem.GetTempPath());
43
var provider = new DesktopStrongNameProvider(ImmutableArray<string>.Empty, new VirtualizedStrongNameFileSystem(tempDir.
Path
));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (4)
Attributes\AttributeTests_Security.cs (4)
1502
var resolver = new XmlFileResolver(tempDir.
Path
);
1585
var resolver = new XmlFileResolver(tempDir.
Path
);
1606
string filePath = Path.Combine(tempDir.
Path
, "pset_01.xml");
1629
TestOptions.ReleaseDll.WithXmlReferenceResolver(new XmlFileResolver(tempDir.
Path
)));
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler.UnitTests (1)
ReferencedModulesTests.cs (1)
1403
var pdbPath = Temp.CreateDirectory().
Path
;
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (8)
CsiTests.cs (8)
36
var result = ProcessUtilities.Run(CsiPath, "/r:C.dll a.csx", workingDirectory: dir.
Path
);
37
AssertEx.AssertEqualToleratingWhitespaceDifferences(dir.
Path
+ ";C", result.Output);
51
Directory.SetCurrentDirectory(@""{dir.
Path
}"")
94
var result = ProcessUtilities.Run(CsiPath, "/r:C.dll a.csx", workingDirectory: cwd.
Path
, additionalEnvironmentVars: new[] { KeyValuePairUtil.Create("LIB", dir.
Path
) });
110
var result = ProcessUtilities.Run(CsiPath, "/r:System.Data.dll /u:System.Data;System a.csx", workingDirectory: cwd.
Path
);
135
var result = ProcessUtilities.Run(CsiPath, "a.csx", workingDirectory: cwd.
Path
);
151
var result = ProcessUtilities.Run(CsiPath, "a.csx", workingDirectory: cwd.
Path
);
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (15)
CommandLineRunnerTests.cs (14)
456
workingDirectory: dir.
Path
);
559
var scriptPath = PathUtilities.CombinePathsUnchecked(PathUtilities.GetFileName(directory.
Path
), scriptName);
560
var workingDirectory = PathUtilities.GetDirectoryName(directory.
Path
);
614
var runner = CreateRunner(new[] { $"/loadpath:{dir1.
Path
}", $"/loadpaths:{dir2.
Path
};{dir3.
Path
}", main.Path });
651
var runner = CreateRunner(new[] { "/r:4.dll", $"/lib:{dir1.
Path
}", $"/libpath:{dir2.
Path
}", $"/libpaths:{dir3.
Path
};{dir4.
Path
}", main.Path });
672
SourcePaths.Add(@""{dir.
Path
}"")
687
> SourcePaths.Add(@""{dir.
Path
}"")
708
ReferencePaths.Add(@""{dir.
Path
}"")
723
> ReferencePaths.Add(@""{dir.
Path
}"")
InteractiveSessionReferencesTests.cs (1)
144
File.Move(libBFile.Path, Path.Combine(dir.
Path
, "libB.dll"));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
DocumentationComments\DocumentationCommentCompilerTests.cs (2)
2969
var resolver = new XmlFileResolver(rootDir.
Path
);
6910
var path = dir.
Path
;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (4)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (2)
568
AddDocument(CreateDesignTimeOnlyDocument(projectPId, name: "dt1.cs", path: Path.Combine(dir.
Path
, "dt1.cs"))).
798
var designTimeOnlyFilePath = Path.Combine(dir.
Path
, designTimeOnlyFileName);
Emit\CompilationOutputFilesTests.cs (1)
57
Directory.Delete(dir.
Path
, recursive: true);
SolutionCrawler\WorkCoordinatorTests.cs (1)
778
var analyzerConfigDocFilePath = PathUtilities.CombineAbsoluteAndRelativePaths(Temp.CreateDirectory().
Path
, ".editorconfig");
Microsoft.CodeAnalysis.Scripting.UnitTests (4)
RuntimeMetadataReferenceResolverTests.cs (4)
31
new RelativePathResolver(ImmutableArray.Create(directory.
Path
), directory.
Path
),
51
searchPaths: ImmutableArray.Create(directory.
Path
),
52
baseDirectory: directory.
Path
);
Microsoft.CodeAnalysis.Test.Utilities (4)
AssemblyLoadTestFixture.cs (1)
23
public string TempDirectory => _directory.
Path
;
TempFiles\DisposableDirectory.cs (3)
21
if (
Path
!= null && Directory.Exists(
Path
))
25
Directory.Delete(
Path
, recursive: true);
Microsoft.CodeAnalysis.UnitTests (8)
Analyzers\AnalyzerFileReferenceTests.cs (5)
320
new BuildPaths(clientDir: directory.
Path
, workingDir: directory.
Path
, sdkDir: null, tempDir: null),
349
new BuildPaths(clientDir: directory.
Path
, workingDir: directory.
Path
, sdkDir: null, tempDir: null),
482
var generatorPath = Path.Combine(directory.
Path
, $"generator_{targetFramework}.dll");
FileSystem\RelativePathResolverTests.cs (2)
171
ImmutableArray.Create(dir1.
Path
, dir2.
Path
),
InvokeUtil.cs (1)
50
? new ShadowCopyAnalyzerAssemblyLoader(compilerContext, tempRoot.CreateDirectory().
Path
)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (200)
CommandLineTests.vb (192)
76
Dim cmd = New MockVisualBasicCompiler(Nothing, dir.
Path
, {
113
Dim cmd = New MockVisualBasicCompiler(Nothing, dir.
Path
, {
171
Dim cmd = New MockVisualBasicCompiler(Nothing, dir.
Path
, {
208
Dim cmd = New MockVisualBasicCompiler(Nothing, dir.
Path
, {
221
$"vbc : error BC37317: Multiple analyzer config files cannot be in the same directory ('{dir.
Path
}').",
238
Dim cmd = New MockVisualBasicCompiler(Nothing, dir.
Path
, {"/nologo", "/errorlog:errorlog", $"/doc:{docName}", "/warnaserror", src.Path})
245
Dim exePath = Path.Combine(dir.
Path
, "temp.exe")
257
Dim cmd = New MockVisualBasicCompiler(Nothing, dir.
Path
, {"/nologo", "/t:library", "/preferreduilang:en", $"/doc:{docName}", src.Path})
264
Dim xmlPath = Path.Combine(dir.
Path
, docName)
313
args = DefaultParse({"-debug+/debug:portable"}, folder.
Path
)
386
Dim cmd = New MockVisualBasicCompiler(dir.
Path
, {"/nologo", "a.vb", "/keyfile:key.snk"})
405
Dim cmd = New MockVisualBasicCompiler(dir.
Path
, {"/nologo", "a.vb", "/keycontainer:aaa"})
424
Dim cmd = New MockVisualBasicCompiler(dir.
Path
, {"/nologo", "a.vb", "/features:UseLegacyStrongNameProvider"})
647
Dim tempDir As String = Temp.CreateDirectory().
Path
687
Dim tempDir As String = Temp.CreateDirectory().
Path
739
Dim tempDir As String = Temp.CreateDirectory().
Path
2413
Dim exitCode As Integer = New MockVisualBasicCompiler(Nothing, folder.
Path
, {"/nologo", "/preferreduilang:en", "/t:library", "/recurse:.", "b.vb", "/out:abc.dll"}).Run(outWriter, Nothing)
2418
exitCode = New MockVisualBasicCompiler(Nothing, folder.
Path
, {"/nologo", "/preferreduilang:en", "/t:library", "/recurse:. ", "b.vb", "/out:abc.dll"}).Run(outWriter, Nothing)
2423
exitCode = New MockVisualBasicCompiler(Nothing, folder.
Path
, {"/nologo", "/preferreduilang:en", "/t:library", "/recurse: . ", "/out:abc.dll"}).Run(outWriter, Nothing)
2428
exitCode = New MockVisualBasicCompiler(Nothing, folder.
Path
, {"/nologo", "/preferreduilang:en", "/t:library", "/recurse:./.", "/out:abc.dll"}).Run(outWriter, Nothing)
2435
args = DefaultParse({"/recurse:*.cp*", "/recurse:b\*.v*", "/out:a.dll"}, folder.
Path
)
2438
AssertEx.Equal({folder.
Path
+ "\c.cpp", folder.
Path
+ "\b\B_e.vb"}, resolvedSourceFiles)
2440
args = DefaultParse({"/recurse:.\\\\\\*.vb", "/out:a.dll"}, folder.
Path
)
2445
args = DefaultParse({"/recurse:.////*.vb", "/out:a.dll"}, folder.
Path
)
2463
Dim exitCode = New MockVisualBasicCompiler(Nothing, folder.
Path
, {"/nologo", "/preferreduilang:en", "/t:exe", "/out:abc.exe"}).Run(outWriter, Nothing)
2596
Dim vbc = New MockVisualBasicCompiler(Nothing, dir.
Path
, {"/nologo", "/preferreduilang:en", "/t:library", "/a:missing.dll", "a.vb"})
2613
Dim vbc = New MockVisualBasicCompiler(Nothing, dir.
Path
, {"/nologo", "/preferreduilang:en", "/t:library", "/a:" + GetType(Object).Assembly.Location, "a.vb"})
2631
Dim vbc = New MockVisualBasicCompiler(Nothing, dir.
Path
, {"/nologo", "/preferreduilang:en", "/t:library", "/a:" + Assembly.GetExecutingAssembly().Location, "a.vb"})
2664
Dim vbc = New MockVisualBasicCompiler(Nothing, dir.
Path
, {"/nologo", "/t:library", "/a:" + Assembly.GetExecutingAssembly().Location, "a.vb", "/ruleset:" + ruleSetFile.Path})
2694
Dim vbc = New MockVisualBasicCompiler(Nothing, dir.
Path
,
2708
vbc = New MockVisualBasicCompiler(Nothing, dir.
Path
,
2744
Dim vbc = New MockVisualBasicCompiler(Nothing, dir.
Path
,
2759
vbc = New MockVisualBasicCompiler(Nothing, dir.
Path
,
2798
Dim vbc = New MockVisualBasicCompiler(Nothing, dir.
Path
, {"/nologo", "/t:library", "/a:" + Assembly.GetExecutingAssembly().Location, "a.vb", "/ruleset:" + ruleSetFile.Path})
3185
Dim vbc = New MockVisualBasicCompiler(Nothing, dir.
Path
, {"/nologo", "/debug:embedded", "/sourcelink:sl.json", "a.vb"})
3189
Dim peStream = File.OpenRead(Path.Combine(dir.
Path
, "a.exe"))
3218
Dim vbc = New MockVisualBasicCompiler(Nothing, dir.
Path
, {"/nologo", "/debug:portable", "/sourcelink:sl.json", "a.vb"})
3222
Dim pdbStream = File.OpenRead(Path.Combine(dir.
Path
, "a.pdb"))
3373
Dim vbc = New MockVisualBasicCompiler(Nothing, dir.
Path
, {"/nologo", debugSwitch, embedSwitch, "embed.vb", "embed2.vb"})
3392
Using peReader As New PEReader(File.OpenRead(Path.Combine(dir.
Path
, "embed.exe")))
3399
MetadataReaderProvider.FromPortablePdbStream(File.OpenRead(Path.Combine(dir.
Path
, "embed.pdb"))))
3423
symReader = SymReaderFactory.CreateReader(File.OpenRead(Path.Combine(dir.
Path
, "embed.pdb")))
3567
Dim sdkPath = sdkDir.
Path
3569
Dim parser = VisualBasicCommandLineParser.Default.Parse({$"-sdkPath:{sdkPath}"}, parentDir.
Path
, Nothing)
3577
Dim parser = VisualBasicCommandLineParser.Default.Parse({"file.vb", "-sdkPath", $"-out:{parentDir.
Path
}"}, parentDir.
Path
, Nothing)
3588
Dim parser = VisualBasicCommandLineParser.Default.Parse({"file.vb", $"-out:{parentDir.
Path
}", "-sdkPath:path/to/sdk", "/noSdkPath"}, parentDir.
Path
, Nothing)
3597
Dim parser = VisualBasicCommandLineParser.Default.Parse({"file.vb", $"-out:{parentDir.
Path
}", "/noSdkPath", $"-sdkPath:{sdkDir.
Path
}"}, parentDir.
Path
, Nothing)
3598
AssertEx.Equal(ImmutableArray.Create(sdkDir.
Path
), parser.ReferencePaths)
3614
Dim vbc = New MockVisualBasicCompiler(Nothing, dir.
Path
, {"/nologo", "/preferreduilang:en", "/nosdkpath", "/t:library", "a.vb"})
3639
Dim pdbPath = Path.Combine(dir.
Path
, "a.pdb")
3645
Dim vbc = New MockVisualBasicCompiler(dir.
Path
, args)
3649
Dim exePath = Path.Combine(dir.
Path
, "a.exe")
3660
Dim pePdbPath = Path.Combine(dir.
Path
, "a.pdb")
3667
assertPdbEmit(dir, pePdbPath, {$"/pathmap:{dir.
Path
}=q:\"})
3673
assertPdbEmit(dir, pePdbPath, {$"/pathmap:{dir.
Path
}=q:\", "/deterministic"})
3680
assertPdbEmit(subDir, pePdbPath, {$"/pathmap:{dir.
Path
}=q:\"})
3685
Dim pePdbPath = Path.Combine(dir.
Path
, "a.pdb")
3691
Dim pdbPath = Path.Combine(dir.
Path
, "a.pdb")
3692
assertPdbEmit(dir, "/a.pdb", {$"/pathmap:{dir.
Path
}=/"})
3697
Dim pdbPath = Path.Combine(dir.
Path
, "a.pdb")
3698
assertPdbEmit(dir, "/goo/a.pdb", {$"/pathmap:{dir.
Path
}=/goo,{dir.
Path
}{PathUtilities.DirectorySeparatorChar}=/bar"})
5189
Dim output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, "/nologo /preferreduilang:en /nostdlib /sdkpath:l:\x /t:library " & src.ToString(), expectedRetCode:=1, startFolder:=dir.
Path
)
5195
output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, "/nologo /preferreduilang:en /nostdlib /r:mscorlib.dll /vbruntime- /sdkpath:c:folder /t:library " & src.ToString(), expectedRetCode:=1, startFolder:=dir.
Path
)
5201
output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, "/nologo /preferreduilang:en /nostdlib /sdkpath:" & dir.
Path
& " /t:library " & src.ToString(), expectedRetCode:=1, startFolder:=dir.
Path
)
5205
</text>, output.Replace(dir.
Path
, "{SDKPATH}"))
5211
output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, "/nologo /preferreduilang:en /nostdlib /sdkpath:" & dir.
Path
& " /t:library " & src.ToString(), expectedRetCode:=1, startFolder:=dir.
Path
)
5215
</text>, output.Replace(dir.
Path
, "{SDKPATH}"))
5220
output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, "/nologo /preferreduilang:en /nostdlib /sdkpath:" & dir.
Path
& " /t:library " & src.ToString(), expectedRetCode:=1, startFolder:=dir.
Path
)
5224
</text>, output.Replace(dir.
Path
, "{SDKPATH}"))
5231
output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, "/nologo /nostdlib /sdkpath:" & dir.
Path
& " /t:library /vbruntime* /r:" & Path.Combine(RuntimeEnvironment.GetRuntimeDirectory(), "System.dll") & " " & src.ToString(), startFolder:=dir.
Path
)
5232
AssertOutput(<text></text>, output.Replace(dir.
Path
, "{SDKPATH}")) ' SUCCESSFUL BUILD with 'mscorlib.dll' and embedded VbCore
5237
output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, "/nologo /nostdlib /sdkpath:" & dir.
Path
& " /t:library /vbruntime* /r:" & Path.Combine(RuntimeEnvironment.GetRuntimeDirectory(), "System.dll") & " " & src.ToString(), startFolder:=dir.
Path
)
5238
AssertOutput(<text></text>, output.Replace(dir.
Path
, "{SDKPATH}"))
5262
Dim sdkMultiPath = subFolder1.
Path
& "," & subFolder2.
Path
5269
output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, cmdNoStdLibNoRuntime, startFolder:=dir.
Path
, expectedRetCode:=1)
5270
AssertOutput(<text>vbc : error BC2017: could not find library 'mscorlib.dll'</text>, output.Replace(dir.
Path
, "{SDKPATH}"))
5277
output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, cmdNoStdLibNoRuntime, startFolder:=dir.
Path
)
5278
AssertOutput(<text></text>, output.Replace(dir.
Path
, "{SDKPATH}"))
5280
output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, cmd, startFolder:=dir.
Path
, expectedRetCode:=1)
5285
</text>, output.Replace(dir.
Path
, "{SDKPATH}"))
5302
Dim output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, "/nologo /preferreduilang:en /nostdlib /t:library " & src.ToString(), startFolder:=dir.
Path
, expectedRetCode:=1)
5305
output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, "/nologo /nostdlib /define:_MYTYPE=\""Empty\"" /t:library " & src.ToString(), startFolder:=dir.
Path
)
5308
output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, "/nologo /preferreduilang:en /nostdlib /sdkpath:x:\ /vbruntime- /define:_MYTYPE=\""Empty\"" /t:library " & src.ToString(), expectedRetCode:=1, startFolder:=dir.
Path
)
5733
Dim vbc As New MockVisualBasicCompiler(Nothing, dir.
Path
, commandLineArguments.Concat({inputName1, inputName2}).ToArray())
5740
Assert.Equal(1, Directory.EnumerateFiles(dir.
Path
, "*" & PathUtilities.GetExtension(expectedOutputName)).Count())
5741
Assert.Equal(1, Directory.EnumerateFiles(dir.
Path
, expectedOutputName).Count())
5873
Dim vbc As New MockVisualBasicCompiler(Nothing, dir.
Path
, commandLineArguments.Concat({fileName}).ToArray())
5925
Dim vbc As New MockVisualBasicCompiler(Nothing, dir.
Path
, {fileName, "/preferreduilang:en"})
5978
Dim vbc As New MockVisualBasicCompiler(Nothing, dir.
Path
, {fileName, "/preferreduilang:en", "-imports:System"})
6015
Dim vbc As New MockVisualBasicCompiler(Nothing, dir.
Path
, {fileName, "/preferreduilang:en"})
6065
Dim vbc As New MockVisualBasicCompiler(Nothing, dir.
Path
, {fileName, "/preferreduilang:en"})
6109
Dim vbc As New MockVisualBasicCompiler(Nothing, dir.
Path
, {fileName, "/preferreduilang:en"})
6157
Dim vbc As New MockVisualBasicCompiler(Nothing, dir.
Path
, {fileName, "/preferreduilang:en"})
6203
Dim vbc As New MockVisualBasicCompiler(Nothing, dir.
Path
, {fileName, "/preferreduilang:en"})
6245
Dim vbc As New MockVisualBasicCompiler(Nothing, dir.
Path
, {fileName, "/preferreduilang:en"})
6280
Dim vbc As New MockVisualBasicCompiler(Nothing, dir.
Path
, {fileName, "/target:exe", "/preferreduilang:en", "/out:sub\a.exe"})
6284
Assert.Contains("error BC2012: can't open '" + dir.
Path
+ "\sub\a.exe' for writing", output.ToString(), StringComparison.Ordinal)
6312
Dim vbc As New MockVisualBasicCompiler(Nothing, dir.
Path
, {fileName, "/preferreduilang:en", "/target:exe", "/out:sub\"})
6346
Dim vbc As New MockVisualBasicCompiler(Nothing, dir.
Path
, {fileName, "/preferreduilang:en", "/target:exe", "/out:sub\ "})
6380
Dim vbc As New MockVisualBasicCompiler(Nothing, dir.
Path
, {fileName, "/preferreduilang:en", "/target:exe", "/out:aaa:\a.exe"})
6412
Dim vbc As New MockVisualBasicCompiler(Nothing, dir.
Path
, {fileName, "/preferreduilang:en", "/target:exe", "/out: "})
6435
Dim output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, "/nologo /t:library " & file.ToString(), startFolder:=dir.
Path
)
6438
output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, "/nologo /preferreduilang:en /t:library /codepage:20127 " & file.ToString(), expectedRetCode:=1, startFolder:=dir.
Path
) ' 20127: US-ASCII
6799
vbc = New MockVisualBasicCompiler(Nothing, dir.
Path
,
6807
vbc = New MockVisualBasicCompiler(Nothing, dir.
Path
,
6817
Dim library As IntPtr = LoadLibraryEx(Path.Combine(dir.
Path
, outputFileName), IntPtr.Zero, 2)
7499
Dim output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, "/nologo /t:library /langversion:9 /preferreduilang:en " & src.ToString(), expectedRetCode:=1, startFolder:=dir.
Path
)
7582
Dim vbc = New MockVisualBasicCompiler(Nothing, dir.
Path
, {"/nologo", "/preferreduilang:en", "/t:library", "a.vb"})
7600
" & Path.GetFullPath(Path.Combine(dir.
Path
, "..\b.vb")) & "(40) : error BC30451: 'Goo' is not declared. It may be inaccessible due to its protection level.
7603
" & Path.GetFullPath(Path.Combine(dir.
Path
, "..\b.vb")) & "(50) : error BC30451: 'Goo' is not declared. It may be inaccessible due to its protection level.
7686
args = DefaultParse({"/additionalfile:web*.config", "a.vb"}, baseDir.
Path
)
7689
Assert.Equal(Path.Combine(baseDir.
Path
, "web1.config"), args.AdditionalFiles(0).Path)
7690
Assert.Equal(Path.Combine(baseDir.
Path
, "web2.config"), args.AdditionalFiles(1).Path)
7691
Assert.Equal(Path.Combine(baseDir.
Path
, "web3.config"), args.AdditionalFiles(2).Path)
7832
Dim vbc = New MockVisualBasicCompiler(Nothing, sourceDir.
Path
, args, analyzers, generators)
8599
Dim arguments = DefaultParse({"/ruleset:Rules.RuleSet", "/WarnAsError+", "A.vb"}, dir.
Path
)
8619
Dim arguments = DefaultParse({"/ruleset:Rules.RuleSet", "/WarnAsError+", "A.vb"}, dir.
Path
)
8640
Dim arguments = DefaultParse({"/ruleset:Rules.RuleSet", "/WarnAsError+", "A.vb"}, dir.
Path
)
8661
Dim arguments = DefaultParse({"/ruleset:Rules.RuleSet", "/WarnAsError+:Test001", "A.vb"}, dir.
Path
)
8682
Dim arguments = DefaultParse({"/ruleset:Rules.RuleSet", "/WarnAsError+", "/WarnAsError-", "A.vb"}, dir.
Path
)
8703
Dim arguments = DefaultParse({"/ruleset:Rules.RuleSet", "/WarnAsError+", "/WarnAsError-:Test001", "A.vb"}, dir.
Path
)
8724
Dim arguments = DefaultParse({"/ruleset:Rules.RuleSet", "/WarnAsError+:Test002", "/WarnAsError-:Test002", "A.vb"}, dir.
Path
)
8746
Dim arguments = DefaultParse({"/ruleset:Rules.RuleSet", "/NoWarn", "/WarnAsError+", "A.vb"}, dir.
Path
)
8767
Dim arguments = DefaultParse({"/ruleset:Rules.RuleSet", "/WarnAsError+", "/NoWarn", "/WarnAsError-", "A.vb"}, dir.
Path
)
8790
Dim arguments = DefaultParse({"/ruleset:Rules.RuleSet", "/NoWarn", "A.vb"}, dir.
Path
)
8813
Dim arguments = DefaultParse({"/ruleset:Rules.RuleSet", "/NoWarn:Test001", "/WarnAsError+", "/WarnAsError-:Test001", "A.vb"}, dir.
Path
)
9037
Dim vbc As New MockVisualBasicCompiler(Nothing, dir.
Path
, {"/nologo", "/target:exe", fileName})
9242
Dim vbc = New MockVisualBasicCompiler(Nothing, dir.
Path
,
9248
Dim exe = Path.Combine(dir.
Path
, "a.exe")
9257
Dim doc = Path.Combine(dir.
Path
, "doc.xml")
9280
Dim output = ProcessUtilities.RunAndGetOutput(exe, startFolder:=dir.
Path
)
9283
Dim refDll = Path.Combine(refDir.
Path
, "a.dll")
9295
CleanupAllGeneratedFiles(dir.
Path
)
9296
CleanupAllGeneratedFiles(refDir.
Path
)
9313
Dim vbc = New MockVisualBasicCompiler(Nothing, dir.
Path
,
9319
Dim vb = Path.Combine(dir.
Path
, "a.vb")
9321
Dim dll = Path.Combine(dir.
Path
, "a.dll")
9324
Dim refDll = Path.Combine(dir.
Path
, Path.Combine("ref", "a.dll"))
9335
CleanupAllGeneratedFiles(dir.
Path
)
9360
Dim vbc = New MockVisualBasicCompiler(Nothing, dir.
Path
,
9366
Dim refDll = Path.Combine(dir.
Path
, "a.dll")
9377
Dim pdb = Path.Combine(dir.
Path
, "a.pdb")
9380
Dim doc = Path.Combine(dir.
Path
, "doc.xml")
9410
CleanupAllGeneratedFiles(dir.
Path
)
9453
Assert.Equal(0, New MockVisualBasicCompiler(Nothing, dir.
Path
, {fileName, targetArg, outArg}).Run(output, Nothing))
9454
Assert.True(File.Exists(Path.Combine(dir.
Path
, expectedFile)), "Expected to find: " & expectedFile)
9455
Assert.False(File.Exists(Path.Combine(dir.
Path
, unexpectedFile)), "Didn't expect to find: " & unexpectedFile)
9462
Dim srcPath = MakeTrivialExe(Temp.CreateDirectory().
Path
)
9481
Dim srcPath = MakeTrivialExe(Temp.CreateDirectory().
Path
)
9501
Dim srcPath = MakeTrivialExe(Temp.CreateDirectory().
Path
)
9522
Dim srcPath = MakeTrivialExe(Temp.CreateDirectory().
Path
)
9567
Dim result = ProcessUtilities.Run(vbcPath, arguments:="/nologo /t:library unknown.vb", workingDirectory:=dir.
Path
)
9575
result = ProcessUtilities.Run(vbcPath, arguments:="/nologo /t:library unknown.vb", workingDirectory:=dir.
Path
)
9587
Dim src = MakeTrivialExe(directory:=dir.
Path
)
9591
Dim vbc = New MockVisualBasicCompiler(Nothing, dir.
Path
, args)
9595
Dim exePath = Path.Combine(dir.
Path
, "a.exe")
9612
Dim vbc = New MockVisualBasicCompiler(Nothing, New BuildPaths("", workingDir.
Path
, Nothing, tempDir.
Path
),
9898
Dim binaryPath As String = Path.Combine(dir.
Path
, "temp.dll")
9901
Dim pdbPath As String = Path.Combine(dir.
Path
, "temp.pdb")
9904
Dim docPath As String = Path.Combine(dir.
Path
, docName)
9950
Dim binaryPath As String = Path.Combine(dir.
Path
, "temp.dll")
9953
Dim pdbPath As String = Path.Combine(dir.
Path
, "temp.pdb")
9956
Dim docPath As String = Path.Combine(dir.
Path
, docName)
10007
Dim binaryPath As String = Path.Combine(dir.
Path
, "temp.dll")
10010
Dim pdbPath As String = Path.Combine(dir.
Path
, "temp.pdb")
10013
Dim docPath As String = Path.Combine(dir.
Path
, docName)
10044
Dim binaryPath As String = Path.Combine(dir.
Path
, "temp.dll")
10070
Dim cmd = New MockVisualBasicCompiler(Nothing, dir.
Path
, args, analyzer)
10105
Dim cmd = New MockVisualBasicCompiler(Nothing, dir.
Path
, args, analyzer)
10280
CleanupAllGeneratedFiles(srcDirectory.
Path
)
10421
{{generatedDir.
Path
, New Dictionary(Of String, String)()}}
10425
Directory.Delete(dir.
Path
, True)
10435
Dim generatedDirPath = Path.Combine(dir.
Path
, "noexist")
10447
Directory.Delete(dir.
Path
, True)
10464
VerifyOutput(dir, src, includeCurrentAssemblyAsAnalyzerReference:=False, additionalFlags:={"/generatedfilesout:" + generatedDir.
Path
}, generators:={generator})
10468
{{Path.Combine(generatedDir.
Path
, generatorPrefix), New Dictionary(Of String, String)() From
10474
Directory.Delete(dir.
Path
, True)
10490
Directory.Delete(dir.
Path
, True)
10560
Dim generatorPath = Path.Combine(directory.
Path
, "generator.dll")
SarifErrorLoggerTests.vb (5)
49
Dim errorLogFile = Path.Combine(errorLogDir.
Path
, "ErrorLog.txt")
84
Dim errorLogFile = Path.Combine(errorLogDir.
Path
, "ErrorLog.txt")
125
Dim errorLogFile = Path.Combine(errorLogDir.
Path
, "ErrorLog.txt")
163
Dim errorLogFile = Path.Combine(outputDir.
Path
, "ErrorLog.txt")
164
Dim outputFilePath = Path.Combine(outputDir.
Path
, "test.dll")
TouchedFileLoggingTests.vb (3)
36
Dim touchedBase = Path.Combine(touchedDir.
Path
, "touched")
67
Dim touchedBase = Path.Combine(touchedDir.
Path
, "touched")
109
Dim touchedBase = Path.Combine(touchedDir.
Path
, "touched")
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Emit\CompilationEmitTests.vb (2)
3594
Dim resolver = New XmlFileResolver(tempDir.
Path
)
3734
Dim filePath = Path.Combine(tempDir.
Path
, "pset_01.xml")
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
DocumentationComments\DocCommentTests.vb (1)
12374
Dim path = dir.
Path
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (5)
NetCoreTests.cs (4)
37
["NUGET_PACKAGES"] = _nugetCacheDir.
Path
45
workingDirectory: SolutionDirectory.
Path
,
53
var arguments = $@"msbuild ""{solutionOrProjectFileName}"" /t:restore /bl:{Path.Combine(SolutionDirectory.
Path
, "restore.binlog")}";
59
var arguments = $@"msbuild ""{solutionOrProjectFileName}"" /bl:{Path.Combine(SolutionDirectory.
Path
, "build.binlog")}";
WorkspaceTestBase.cs (1)
36
return Path.Combine(this.SolutionDirectory.
Path
, relativeFileName);
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
CommandLineProject\CommandLineProjectWorkspaceTests.cs (1)
29
var info = CommandLineProject.CreateProjectInfo("TestProject", LanguageNames.CSharp, commandLine, tempDirectory.
Path
, ws);
WorkspaceTests\AdhocWorkspaceTests.cs (1)
286
var analyzerConfigDocFilePath = PathUtilities.CombineAbsoluteAndRelativePaths(Temp.CreateDirectory().
Path
, ".editorconfig");
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (10)
PersistentStorage\AbstractPersistentStorageTests.cs (4)
1016
var configuration = new MockPersistentStorageConfiguration(solution.Id, persistentFolder.
Path
, throwOnFailure);
1018
_storageService = GetStorageService(solution.Workspace.Services.SolutionServices.ExportProvider, configuration, faultInjector, _persistentFolder.
Path
);
1035
var configuration = new MockPersistentStorageConfiguration(solutionKey.Id, _persistentFolder.
Path
, throwOnFailure: true);
1037
_storageService = GetStorageService(services.SolutionServices.ExportProvider, configuration, faultInjector, _persistentFolder.
Path
);
ProjectSystemShim\TempPECompilerServiceTests.cs (2)
32
pszOutputFileName: Path.Combine(directory.
Path
, "Output.dll"),
38
optionValues: new[] { Path.Combine(directory.
Path
, "MissingReference.dll") });
ProjectSystemShim\VisualStudioCompilationOutputFilesTests.cs (4)
68
Directory.Delete(dir.
Path
, recursive: true);
75
var outputs = new CompilationOutputFilesWithImplicitPdbPath(Path.Combine(dir.
Path
, "nonexistent.dll"));
90
var debugDirPdbPath = Path.Combine(dir.
Path
, "nonexistent.pdb");
107
Directory.Delete(dir.
Path
, recursive: true);
Microsoft.VisualStudio.LanguageServices.UnitTests (3)
AnalyzerSupport\AnalyzerDependencyCheckerTests.vb (3)
852
Dim tempOut = Path.Combine(directory.
Path
, libraryName + ".out")
853
Dim libraryOut = Path.Combine(directory.
Path
, libraryName + ".dll")
859
references.Add(PortableExecutableReference.CreateFromFile(Path.Combine(directory.
Path
, referenceName + ".dll")))
VBCSCompiler.UnitTests (38)
AnalyzerConsistencyCheckerTests.cs (6)
87
var result = AnalyzerConsistencyChecker.Check(directory.
Path
, analyzerReferences, new InMemoryAssemblyLoader(), Logger);
122
var result = AnalyzerConsistencyChecker.Check(directory.
Path
, analyzerReferences, assemblyLoader, Logger);
144
var result = AnalyzerConsistencyChecker.Check(directory.
Path
, analyzerReferences, assemblyLoader, Logger);
167
var result = AnalyzerConsistencyChecker.Check(directory.
Path
, analyzerReferences, assemblyLoader, Logger);
181
var result = AnalyzerConsistencyChecker.Check(directory.
Path
, analyzerReferences, TestAnalyzerAssemblyLoader.LoadNotImplemented, Logger);
195
var result = AnalyzerConsistencyChecker.Check(directory.
Path
, analyzerReferences, new DefaultAnalyzerAssemblyLoader(), Logger);
BuildClientTests.cs (2)
40
workingDir: Temp.CreateDirectory().
Path
,
41
tempDir: Temp.CreateDirectory().
Path
);
BuildServerConnectionTests.cs (4)
40
var workingDirectory = TempRoot.CreateDirectory().
Path
;
69
var workingDirectory = TempRoot.CreateDirectory().
Path
;
99
ProtocolUtil.CreateEmptyCSharp(TempRoot.CreateDirectory().
Path
),
120
var workingDirectory = TempRoot.CreateDirectory().
Path
;
CompilerServerApiTest.cs (1)
115
var request = BuildRequest.Create(RequestLanguage.CSharpCompile, workingDirectory: temp.CreateDirectory().
Path
, tempDirectory: null, compilerHash: BuildProtocolConstants.GetCommitHash(), libDirectory: null, args: Array.Empty<string>());
CompilerServerTests.cs (21)
201
workingDir: currentDirectory.
Path
,
203
tempDir: BuildServerConnection.GetTempPath(currentDirectory.
Path
));
231
finalFlags = $"{flags} /shared:{serverData.PipeName} /pathmap:{tempDir.
Path
}=/ /out:{outFile} {srcFile}";
257
return new DisposableFile(Path.Combine(directory.
Path
, resultFileName));
290
var newTempDir = _tempDirectory.CreateDirectory(new string('a', 100 - _tempDirectory.
Path
.Length));
292
new[] { new KeyValuePair<string, string>("TMPDIR", newTempDir.
Path
) },
559
Assert.False(File.Exists(Path.Combine(_tempDirectory.
Path
, "hello.exe")));
589
Assert.False(File.Exists(Path.Combine(_tempDirectory.
Path
, "hello.exe")));
606
Assert.False(File.Exists(Path.Combine(_tempDirectory.
Path
, "missingfile.exe")));
624
Assert.False(File.Exists(Path.Combine(_tempDirectory.
Path
, "hello.exe")));
649
Assert.False(File.Exists(Path.Combine(_tempDirectory.
Path
, "app.exe")));
667
Assert.False(File.Exists(Path.Combine(_tempDirectory.
Path
, "missingfile.exe")));
696
Assert.False(File.Exists(Path.Combine(_tempDirectory.
Path
, "hellovb.exe")));
725
Assert.False(File.Exists(Path.Combine(_tempDirectory.
Path
, "app.exe")));
1063
$"src1.cs /shared:{serverData.PipeName} /nologo /t:library /out:" + Path.Combine(libDirectory.
Path
, "lib.dll"),
1081
additionalEnvironmentVars: new Dictionary<string, string>() { { "LIB", libDirectory.
Path
} });
1114
$"src1.vb /shared:{serverData.PipeName} /vbruntime* /nologo /t:library /out:" + Path.Combine(libDirectory.
Path
, "lib.dll"),
1133
additionalEnvironmentVars: new Dictionary<string, string>() { { "LIB", libDirectory.
Path
} });
1397
var tmp = Path.Combine(_tempDirectory.
Path
, "Temp");
1431
var tmp = Path.Combine(_tempDirectory.
Path
, "Temp");
1463
var workingDirectory = dir.
Path
;
TouchedFileLoggingTests.cs (2)
59
var touchedBase = Path.Combine(touchedDir.
Path
, "touched");
109
var touchedBase = Path.Combine(touchedDir.
Path
, "touched");
VBCSCompilerServerTests.cs (2)
305
var workingDirectory = TempRoot.CreateDirectory().
Path
;
346
var workingDirectory = TempRoot.CreateDirectory().
Path
;