131 references to CreateFileInTempProjectDirectory
Microsoft.Build.Engine.OM.UnitTests (1)
Definition\Project_Tests.cs (1)
571string importPath = ObjectModelHelpers.CreateFileInTempProjectDirectory("import.targets", importContent);
Microsoft.Build.Engine.UnitTests (70)
BackEnd\MSBuild_Tests.cs (11)
199ObjectModelHelpers.CreateFileInTempProjectDirectory( 221ObjectModelHelpers.CreateFileInTempProjectDirectory( 245ObjectModelHelpers.CreateFileInTempProjectDirectory( 254ObjectModelHelpers.CreateFileInTempProjectDirectory( 283ObjectModelHelpers.CreateFileInTempProjectDirectory( 292ObjectModelHelpers.CreateFileInTempProjectDirectory( 321ObjectModelHelpers.CreateFileInTempProjectDirectory( 340ObjectModelHelpers.CreateFileInTempProjectDirectory( 367ObjectModelHelpers.CreateFileInTempProjectDirectory( 376ObjectModelHelpers.CreateFileInTempProjectDirectory( 385ObjectModelHelpers.CreateFileInTempProjectDirectory(
BackEnd\TargetUpToDateChecker_Tests.cs (1)
581string path = ObjectModelHelpers.CreateFileInTempProjectDirectory(filesToAnalyze[i].Path, "");
Construction\ProjectRootElement_Tests.cs (4)
31ObjectModelHelpers.CreateFileInTempProjectDirectory(Guid.NewGuid().ToString("N"), contents, Encoding.UTF8) : 32ObjectModelHelpers.CreateFileInTempProjectDirectory(Guid.NewGuid().ToString("N"), contents); 51ObjectModelHelpers.CreateFileInTempProjectDirectory(Guid.NewGuid().ToString("N"), contents, Encoding.UTF8) : 52ObjectModelHelpers.CreateFileInTempProjectDirectory(Guid.NewGuid().ToString("N"), contents);
Construction\SolutionProjectGenerator_Tests.cs (20)
607string solutionFile = ObjectModelHelpers.CreateFileInTempProjectDirectory("Foo.sln", solutions[i]); 608string projectFile = ObjectModelHelpers.CreateFileInTempProjectDirectory("ClassLibrary1.csproj", projects[i]); 626string solutionFileMultipleProjects = ObjectModelHelpers.CreateFileInTempProjectDirectory("Foo.sln", solutionFileContentsDev12MultipleProjects); 627string projectFileV4 = ObjectModelHelpers.CreateFileInTempProjectDirectory("ClassLibrary1.csproj", classLibraryContentsToolsV4); 628string projectFileV12 = ObjectModelHelpers.CreateFileInTempProjectDirectory("ClassLibrary2.csproj", classLibraryContentsToolsV12); 671string projectFile = ObjectModelHelpers.CreateFileInTempProjectDirectory("ClassLibrary1.csproj", classLibraryContents); 692string solutionFile = ObjectModelHelpers.CreateFileInTempProjectDirectory("Foo.sln", solutionFileContents); 1018var solutionFile = ObjectModelHelpers.CreateFileInTempProjectDirectory("MSBuildIssue.sln", solutionFileContents); 1019ObjectModelHelpers.CreateFileInTempProjectDirectory("B.csproj", projectBravoFileContents); 1020ObjectModelHelpers.CreateFileInTempProjectDirectory("C.csproj", projectCharlieFileContents); 1021ObjectModelHelpers.CreateFileInTempProjectDirectory("D.csproj", projectDeltaFileContents); 1031var automaticProjectFile = ObjectModelHelpers.CreateFileInTempProjectDirectory("automatic.msbuild", automaticProjectFileContents); 2429string solutionFilePath = ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, $"{Guid.NewGuid():N}.sln"), @" 2448ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, $"after.{Path.GetFileName(solutionFilePath)}.targets"), @" 2485string solutionFilePath = ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, $"{Guid.NewGuid():N}.sln"), @" 2504ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, $"after.{Path.GetFileName(solutionFilePath)}.targets"), @" 2560string solutionFilePath = ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, $"{Guid.NewGuid():N}.sln"), @" 2579string projectPath = ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, projectName), $@" 2589ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, "Directory.Solution.props"), $@" 2596ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine(baseDirectory, "Directory.Solution.targets"), $@"
Evaluation\Evaluator_Tests.cs (5)
1226ObjectModelHelpers.CreateFileInTempProjectDirectory($"{filename1}-1.props", @" 1232ObjectModelHelpers.CreateFileInTempProjectDirectory($"{filename1}-2.props", @" 1239ObjectModelHelpers.CreateFileInTempProjectDirectory($"{filename2}-1.props", @" 1245ObjectModelHelpers.CreateFileInTempProjectDirectory($"{filename2}-2.props", @" 1251ObjectModelHelpers.CreateFileInTempProjectDirectory($"{filename2}-3.props", @"
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (17)
52mainProjectPath = ObjectModelHelpers.CreateFileInTempProjectDirectory("main.proj", GetMainTargetFileContent()); 94string mainProjectPath = ObjectModelHelpers.CreateFileInTempProjectDirectory("main.proj", GetMainTargetFileContent()); 128string mainProjectPath = ObjectModelHelpers.CreateFileInTempProjectDirectory("main.proj", GetMainTargetFileContent()); 161string mainProjectPath = ObjectModelHelpers.CreateFileInTempProjectDirectory("main.proj", mainTargetsFileContent); 202string mainProjectPath = ObjectModelHelpers.CreateFileInTempProjectDirectory("main.proj", mainTargetsFileContent); 257string mainProjectPath = ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine("extensions2", "circularwildcardtest", "main.proj"), mainTargetsFileContent); 285string mainProjectPath = ObjectModelHelpers.CreateFileInTempProjectDirectory("main.proj", GetMainTargetFileContent()); 302mainProjectPath = ObjectModelHelpers.CreateFileInTempProjectDirectory("main.proj", GetMainTargetFileContent()); 358string mainProjectPath = ObjectModelHelpers.CreateFileInTempProjectDirectory("main.proj", GetMainTargetFileContent()); 402string mainProjectPath = ObjectModelHelpers.CreateFileInTempProjectDirectory("main.proj", GetMainTargetFileContent()); 494mainProjectPath = ObjectModelHelpers.CreateFileInTempProjectDirectory("main.proj", GetMainTargetFileContent()); 570mainProjectPath = ObjectModelHelpers.CreateFileInTempProjectDirectory("main.proj", 631mainProjectPath = ObjectModelHelpers.CreateFileInTempProjectDirectory("main.proj", 702mainProjectPath = ObjectModelHelpers.CreateFileInTempProjectDirectory("main.proj", mainTargetsFileContent); 767mainProjectPath = ObjectModelHelpers.CreateFileInTempProjectDirectory("main.proj", mainTargetsFileContent); 826mainProjectPath = ObjectModelHelpers.CreateFileInTempProjectDirectory("main.proj", mainTargetsFileContent); 895mainProjectPath = ObjectModelHelpers.CreateFileInTempProjectDirectory("main.proj", GetMainTargetFileContent(extnPathPropertyName));
FileUtilities_Tests.cs (2)
901string filePath = ObjectModelHelpers.CreateFileInTempProjectDirectory("first/second/file.txt", String.Empty); 932string filePath = ObjectModelHelpers.CreateFileInTempProjectDirectory("first/second/file.txt", String.Empty);
FixPathOnUnix_Tests.cs (3)
40string buildProjectPath = ObjectModelHelpers.CreateFileInTempProjectDirectory("build.proj", buildProjectContents); 41ObjectModelHelpers.CreateFileInTempProjectDirectory("projectDirectory/main.proj", mainProjectContents); 42ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine("projectDirectory", "lib", "foo.dll"), "just a text file");
Instance\ProjectInstance_Internal_Tests.cs (7)
67string importPath = ObjectModelHelpers.CreateFileInTempProjectDirectory("import.targets", importContent); 110string import2Path = ObjectModelHelpers.CreateFileInTempProjectDirectory("import2.targets", import2Content); 111string import3Path = ObjectModelHelpers.CreateFileInTempProjectDirectory("import3.targets", import3Content); 114string import1Path = ObjectModelHelpers.CreateFileInTempProjectDirectory("import1.targets", import1Content); 851string import2Path = ObjectModelHelpers.CreateFileInTempProjectDirectory("import2.targets", import2Content); 852string import3Path = ObjectModelHelpers.CreateFileInTempProjectDirectory("import3.targets", import3Content); 855string import1Path = ObjectModelHelpers.CreateFileInTempProjectDirectory("import1.targets", import1Content);
Microsoft.Build.Tasks.UnitTests (60)
ConvertToAbsolutePath_Tests.cs (3)
25string fileName = ObjectModelHelpers.CreateFileInTempProjectDirectory("file.temp", "foo"); 57string fileName = ObjectModelHelpers.CreateFileInTempProjectDirectory("file%3A.temp", "foo"); 87string fileName = ObjectModelHelpers.CreateFileInTempProjectDirectory("file.temp", "foo");
CreateItem_Tests.cs (5)
165ObjectModelHelpers.CreateFileInTempProjectDirectory("Myapp.proj", @" 176ObjectModelHelpers.CreateFileInTempProjectDirectory("Foo.txt", "foo"); 177ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine("Subdir", "Bar.txt"), "bar"); 197string projectFileFullPath = ObjectModelHelpers.CreateFileInTempProjectDirectory("Myapp.proj", @" 207ObjectModelHelpers.CreateFileInTempProjectDirectory(Path.Combine("Subdir", "Bar.txt"), "bar");
DirectoryBuildProjectImportTestBase.cs (7)
77Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(ObjectModelHelpers.CreateFileInTempProjectDirectory(_projectRelativePath, @" 100ObjectModelHelpers.CreateFileInTempProjectDirectory(DirectoryBuildProjectFile, BasicDirectoryBuildProjectContents); 106Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(ObjectModelHelpers.CreateFileInTempProjectDirectory(_projectRelativePath, $@" 131string customFilePath = ObjectModelHelpers.CreateFileInTempProjectDirectory(CustomBuildProjectFile, BasicDirectoryBuildProjectContents); 137Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(ObjectModelHelpers.CreateFileInTempProjectDirectory(_projectRelativePath, $@" 159ObjectModelHelpers.CreateFileInTempProjectDirectory(DirectoryBuildProjectFile, BasicDirectoryBuildProjectContents); 165Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(ObjectModelHelpers.CreateFileInTempProjectDirectory(_projectRelativePath, @"
FindUnderPath_Tests.cs (1)
74string fileName = ObjectModelHelpers.CreateFileInTempProjectDirectory("file%3b.temp", "foo");
MSBuild_Tests.cs (16)
182ObjectModelHelpers.CreateFileInTempProjectDirectory( 203ObjectModelHelpers.CreateFileInTempProjectDirectory( 226ObjectModelHelpers.CreateFileInTempProjectDirectory( 235ObjectModelHelpers.CreateFileInTempProjectDirectory( 262ObjectModelHelpers.CreateFileInTempProjectDirectory( 271ObjectModelHelpers.CreateFileInTempProjectDirectory( 297ObjectModelHelpers.CreateFileInTempProjectDirectory( 316ObjectModelHelpers.CreateFileInTempProjectDirectory( 343ObjectModelHelpers.CreateFileInTempProjectDirectory( 352ObjectModelHelpers.CreateFileInTempProjectDirectory( 361ObjectModelHelpers.CreateFileInTempProjectDirectory( 400ObjectModelHelpers.CreateFileInTempProjectDirectory( 440ObjectModelHelpers.CreateFileInTempProjectDirectory( 463ObjectModelHelpers.CreateFileInTempProjectDirectory( 1405ObjectModelHelpers.CreateFileInTempProjectDirectory( 1431ObjectModelHelpers.CreateFileInTempProjectDirectory(
NuGetPropsImportTests.cs (3)
40var nugetPropsRelativePath = ObjectModelHelpers.CreateFileInTempProjectDirectory(NuGetPropsProjectFile, NuGetPropsContent); 45ObjectModelHelpers.CreateFileInTempProjectDirectory(projectRelativePath, $@" 71ObjectModelHelpers.CreateFileInTempProjectDirectory(projectRelativePath, $@"
OutputPathTests.cs (4)
46var projectFilePath = ObjectModelHelpers.CreateFileInTempProjectDirectory(_projectRelativePath, 81var projectFilePath = ObjectModelHelpers.CreateFileInTempProjectDirectory(_projectRelativePath, 119var projectFilePath = ObjectModelHelpers.CreateFileInTempProjectDirectory(_projectRelativePath, 162var projectFilePath = ObjectModelHelpers.CreateFileInTempProjectDirectory(_projectRelativePath,
ProjectExtensionsImportTestBase.cs (13)
56Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(ObjectModelHelpers.CreateFileInTempProjectDirectory(_projectRelativePath, @" 75ObjectModelHelpers.CreateFileInTempProjectDirectory(ImportProjectPath, BasicProjectImportContents); 77Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(ObjectModelHelpers.CreateFileInTempProjectDirectory(_projectRelativePath, $@" 100ObjectModelHelpers.CreateFileInTempProjectDirectory(ImportProjectPath, BasicProjectImportContents); 102Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(ObjectModelHelpers.CreateFileInTempProjectDirectory(_projectRelativePath, $@" 132ObjectModelHelpers.CreateFileInTempProjectDirectory(ImportProjectPath, BasicProjectImportContents); 138Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(ObjectModelHelpers.CreateFileInTempProjectDirectory(_projectRelativePath, $@" 164ObjectModelHelpers.CreateFileInTempProjectDirectory(CustomImportProjectPath, BasicProjectImportContents); 170Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(ObjectModelHelpers.CreateFileInTempProjectDirectory(_projectRelativePath, $@" 191ObjectModelHelpers.CreateFileInTempProjectDirectory(ImportProjectPath, BasicProjectImportContents); 197Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(ObjectModelHelpers.CreateFileInTempProjectDirectory(_projectRelativePath, @" 215Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(ObjectModelHelpers.CreateFileInTempProjectDirectory(_projectRelativePath, @" 241Project project = ObjectModelHelpers.LoadProjectFileInTempProjectDirectory(ObjectModelHelpers.CreateFileInTempProjectDirectory(_projectRelativePath, @"
RegressionTests.cs (2)
92ObjectModelHelpers.CreateFileInTempProjectDirectory("Myapp.proj", @" 103ObjectModelHelpers.CreateFileInTempProjectDirectory("Foo.txt", "foo");
ResourceHandling\GenerateResource_Tests.cs (6)
3081ObjectModelHelpers.CreateFileInTempProjectDirectory("lib1.csproj", $@" 3111ObjectModelHelpers.CreateFileInTempProjectDirectory("Class1.cs", @" 3128ObjectModelHelpers.CreateFileInTempProjectDirectory(@"MyStrings.resx", @" 3257ObjectModelHelpers.CreateFileInTempProjectDirectory("ClassLibrary20.csproj", $@" 3287ObjectModelHelpers.CreateFileInTempProjectDirectory("Class1.cs", @" 3310ObjectModelHelpers.CreateFileInTempProjectDirectory(@"MyStrings.resx", @"