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