1 write to ProjectDir
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
TestUtilities\DotNetSdkTestBase.cs (1)
161
ProjectDir
= Temp.CreateDirectory();
32 references to ProjectDir
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (32)
DotNetSdkTests.cs (25)
28
var root1 = Path.GetFullPath(
ProjectDir
.Path + Path.DirectorySeparatorChar);
316
ProjectDir
.CreateFile("Project2.csproj").WriteAllText($@"
410
var srcFile =
ProjectDir
.CreateFile("lib1.cs").WriteAllText("class C { }");
411
var subdir =
ProjectDir
.CreateDirectory("subdir");
432
Path.Combine(
ProjectDir
.Path, ".editorconfig"),
440
var srcFile =
ProjectDir
.CreateFile("lib1.cs").WriteAllText("class C { }");
441
var subdir =
ProjectDir
.CreateDirectory("subdir");
468
var srcFile =
ProjectDir
.CreateFile("lib1.cs").WriteAllText("class C { }");
469
var globalConfigFile =
ProjectDir
.CreateFile(".globalconfig").WriteAllText(@"is_global = true
471
var subdir =
ProjectDir
.CreateDirectory("subdir");
493
Path.Combine(
ProjectDir
.Path, ".editorconfig"),
502
var srcFile =
ProjectDir
.CreateFile("lib1.cs").WriteAllText("class C { }");
503
var globalConfigFile =
ProjectDir
.CreateFile(".globalconfig").WriteAllText(@"is_global = true
505
var subdir =
ProjectDir
.CreateDirectory("subdir");
528
Path.Combine(
ProjectDir
.Path, ".editorconfig"),
535
var srcFile =
ProjectDir
.CreateFile("lib1.cs").WriteAllText("class C { }");
536
var globalConfigFile =
ProjectDir
.CreateFile(".globalconfig").WriteAllText(@"is_global = true
538
var subdir =
ProjectDir
.CreateDirectory("subdir");
573
var dir = Directory.GetParent(
ProjectDir
.Path);
599
var srcFile =
ProjectDir
.CreateFile("lib1.cs").WriteAllText("class C { }");
600
var globalConfigFile =
ProjectDir
.CreateFile(".globalconfig").WriteAllText(@"is_global = true
602
var subdir =
ProjectDir
.CreateDirectory("subdir");
629
var srcFile =
ProjectDir
.CreateFile("lib1.cs").WriteAllText("class C { }");
630
var globalConfigFile =
ProjectDir
.CreateFile("mycustom.config").WriteAllText(@"is_global = true
653
Path.Combine(
ProjectDir
.Path, ".editorconfig"),
TestUtilities\DotNetSdkTestBase.cs (7)
163
ObjDir =
ProjectDir
.CreateDirectory("obj");
164
OutDir =
ProjectDir
.CreateDirectory("bin").CreateDirectory(Configuration).CreateDirectory(TargetFramework);
166
Project =
ProjectDir
.CreateFile(ProjectFileName).WriteAllText(s_projectSource);
167
ProjectDir
.CreateFile("TestClass.cs").WriteAllText(s_classSource);
170
ProjectDir
.CreateFile("Directory.Build.props").WriteAllText("<Project/>");
171
ProjectDir
.CreateFile("Directory.Build.targets").WriteAllText("<Project/>");
172
ProjectDir
.CreateFile(".editorconfig").WriteAllText("root = true");