39 references to TempProjectDir
Microsoft.Build.CommandLine.UnitTests (2)
XMake_Tests.cs (2)
1985
string projectDirectory = Directory.CreateDirectory(Path.Combine(ObjectModelHelpers.
TempProjectDir
, Guid.NewGuid().ToString("N"))).FullName;
2008
string projectDirectory = Directory.CreateDirectory(Path.Combine(ObjectModelHelpers.
TempProjectDir
, Guid.NewGuid().ToString("N"))).FullName;
Microsoft.Build.Engine.OM.UnitTests (4)
Instance\ProjectInstance_Tests.cs (4)
531
string projectA = Path.Combine(ObjectModelHelpers.
TempProjectDir
, "a.proj");
532
string projectB = Path.Combine(ObjectModelHelpers.
TempProjectDir
, "b.proj");
534
string includeFileA = Path.Combine(ObjectModelHelpers.
TempProjectDir
, "aaa4.cs");
535
string includeFileB = Path.Combine(ObjectModelHelpers.
TempProjectDir
, "bbb4.cs");
Microsoft.Build.Engine.UnitTests (13)
BackEnd\TargetUpToDateChecker_Tests.cs (2)
467
Directory.SetCurrentDirectory(ObjectModelHelpers.
TempProjectDir
);
599
string projectFile = Path.Combine(ObjectModelHelpers.
TempProjectDir
, "temp.proj");
BackEnd\TaskBuilder_Tests.cs (2)
969
string projectAPath = Path.Combine(ObjectModelHelpers.
TempProjectDir
, "a.proj");
970
string projectBPath = Path.Combine(ObjectModelHelpers.
TempProjectDir
, "b.proj");
EscapingInProjects_Tests.cs (3)
1805
File.WriteAllText(Path.Combine(ObjectModelHelpers.
TempProjectDir
, "a.weirdo"), String.Empty);
1806
File.WriteAllText(Path.Combine(ObjectModelHelpers.
TempProjectDir
, "b.weirdo"), String.Empty);
1807
File.WriteAllText(Path.Combine(ObjectModelHelpers.
TempProjectDir
, "c.weirdo"), String.Empty);
Evaluation\Evaluator_Tests.cs (2)
1261
<Imports>{ObjectModelHelpers.
TempProjectDir
}\{filename1}-*.props;{ObjectModelHelpers.
TempProjectDir
}\{filename2}-*.props</Imports>
Evaluation\Expander_Tests.cs (2)
3420
MockElementLocation mockElementLocation = new MockElementLocation(Path.Combine(ObjectModelHelpers.
TempProjectDir
, "one", "two", "three", "four", "five", Path.GetRandomFileName()));
3422
string fileToFind = FileUtilities.GetTemporaryFile(ObjectModelHelpers.
TempProjectDir
, null, ".tmp");
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (1)
1000
var extnDir = Path.Combine(ObjectModelHelpers.
TempProjectDir
, extnDirName);
FileLogger_Tests.cs (1)
338
string directory = Path.Combine(ObjectModelHelpers.
TempProjectDir
, Guid.NewGuid().ToString("N"));
Microsoft.Build.Tasks.UnitTests (14)
ConvertToAbsolutePath_Tests.cs (3)
34
Directory.SetCurrentDirectory(ObjectModelHelpers.
TempProjectDir
);
66
Directory.SetCurrentDirectory(ObjectModelHelpers.
TempProjectDir
);
96
Directory.SetCurrentDirectory(ObjectModelHelpers.
TempProjectDir
);
DirectoryBuildProjectImportTestBase.cs (2)
175
Assert.Equal(ObjectModelHelpers.
TempProjectDir
, project.GetPropertyValue(DirectoryBuildProjectBasePathPropertyName), StringComparer.OrdinalIgnoreCase);
177
Assert.Equal(Path.Combine(ObjectModelHelpers.
TempProjectDir
, DirectoryBuildProjectFile), project.GetPropertyValue(DirectoryBuildProjectPathPropertyName));
FindUnderPath_Tests.cs (2)
77
t.Path = new TaskItem(ObjectModelHelpers.
TempProjectDir
);
85
Directory.SetCurrentDirectory(ObjectModelHelpers.
TempProjectDir
);
ProjectExtensionsImportTestBase.cs (1)
150
string projectExtensionsDirectory = Path.Combine(ObjectModelHelpers.
TempProjectDir
, Path.GetDirectoryName(ImportProjectPath));
ProjectExtensionsPropsImportTest.cs (1)
15
protected override string CustomImportProjectPath => Path.Combine(ObjectModelHelpers.
TempProjectDir
, "obj", $"{Path.GetFileName(_projectRelativePath)}.custom.props");
ProjectExtensionsTargetsImportTest.cs (1)
15
protected override string CustomImportProjectPath => Path.Combine(ObjectModelHelpers.
TempProjectDir
, "obj", $"{Path.GetFileName(_projectRelativePath)}.custom.targets");
ResourceHandling\GenerateResource_Tests.cs (4)
3120
string p2pReference = Path.Combine(ObjectModelHelpers.
TempProjectDir
, "bin", "debug", "lib1.dll");
3213
t.Sources = new ITaskItem[] { new TaskItem(Path.Combine(ObjectModelHelpers.
TempProjectDir
, "MyStrings.resx")) };
3362
t.Sources = new ITaskItem[] { new TaskItem(Path.Combine(ObjectModelHelpers.
TempProjectDir
, "MyStrings.resx")) };
3374
Directory.SetCurrentDirectory(ObjectModelHelpers.
TempProjectDir
);
Microsoft.Build.UnitTests.Shared (6)
ObjectModelHelpers.cs (6)
580
Assert.True(FileSystems.Default.FileExists(Path.Combine(
TempProjectDir
, fileRelativePath)), message);
738
project.FullPath = Path.Combine(
TempProjectDir
, "Temporary" + guid.ToString("N") + ".csproj");
856
DeleteDirectory(
TempProjectDir
);
904
string fullFilePath = Path.Combine(
TempProjectDir
, fileRelativePath);
981
string projectFileFullPath = Path.Combine(
TempProjectDir
, projectFileRelativePath);
1016
string projectFileFullPath = Path.Combine(
TempProjectDir
, projectFileRelativePath);