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