807 references to CleanupFileContents
Microsoft.Build.CommandLine.UnitTests (25)
XMake_Tests.cs (25)
1093
string projectString = ObjectModelHelpers.
CleanupFileContents
(
1262
string content = ObjectModelHelpers.
CleanupFileContents
("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>");
1304
string content = ObjectModelHelpers.
CleanupFileContents
("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>");
1321
string content = ObjectModelHelpers.
CleanupFileContents
("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>");
1342
string content = ObjectModelHelpers.
CleanupFileContents
("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>");
1379
string content = ObjectModelHelpers.
CleanupFileContents
("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>");
1414
string content = ObjectModelHelpers.
CleanupFileContents
("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>");
1439
string content = ObjectModelHelpers.
CleanupFileContents
("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>");
1458
string content = ObjectModelHelpers.
CleanupFileContents
("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>");
1476
var content = ObjectModelHelpers.
CleanupFileContents
("<Project><Target Name='t'><Message Text='Completed'/></Target></Project>");
1494
string content = ObjectModelHelpers.
CleanupFileContents
("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>");
1513
var content = ObjectModelHelpers.
CleanupFileContents
(
1553
string contents = ObjectModelHelpers.
CleanupFileContents
(@"
2281
string projectContents = ObjectModelHelpers.
CleanupFileContents
($@"<Project>
2316
string projectContents = ObjectModelHelpers.
CleanupFileContents
($@"<Project>
2363
string projectContents = ObjectModelHelpers.
CleanupFileContents
($@"<Project>
2409
string projectContents = ObjectModelHelpers.
CleanupFileContents
(
2428
string projectContents = ObjectModelHelpers.
CleanupFileContents
(
2453
string projectContents = ObjectModelHelpers.
CleanupFileContents
($@"<Project>
2498
string projectContents = ObjectModelHelpers.
CleanupFileContents
(@"<Project>
2517
var testProject = _env.CreateFile("Importer.proj", ObjectModelHelpers.
CleanupFileContents
(@"
2557
string projectContents = ObjectModelHelpers.
CleanupFileContents
(@$"<Project>
2597
var testSolution = _env.CreateFile("TestSolution.sln", ObjectModelHelpers.
CleanupFileContents
(solutionFileContents));
2648
string projectContents = ObjectModelHelpers.
CleanupFileContents
("""
2702
string projectContents = ObjectModelHelpers.
CleanupFileContents
(@"<Project>
Microsoft.Build.Engine.OM.UnitTests (277)
Construction\ConstructionEditing_Tests.cs (62)
34
string expected = ObjectModelHelpers.
CleanupFileContents
(
62
string expected = ObjectModelHelpers.
CleanupFileContents
(
84
string expected = ObjectModelHelpers.
CleanupFileContents
(
375
string expected = ObjectModelHelpers.
CleanupFileContents
(
398
string expected = ObjectModelHelpers.
CleanupFileContents
(
417
string expected = ObjectModelHelpers.
CleanupFileContents
(
444
string expected = ObjectModelHelpers.
CleanupFileContents
(
473
string expected = ObjectModelHelpers.
CleanupFileContents
(
496
string expected = ObjectModelHelpers.
CleanupFileContents
(
520
string expected = ObjectModelHelpers.
CleanupFileContents
(
548
string expected = ObjectModelHelpers.
CleanupFileContents
(
569
string expected = ObjectModelHelpers.
CleanupFileContents
(
592
string expected = ObjectModelHelpers.
CleanupFileContents
(
613
string expected = ObjectModelHelpers.
CleanupFileContents
(
685
string expected = ObjectModelHelpers.
CleanupFileContents
(
713
string expected = ObjectModelHelpers.
CleanupFileContents
(
752
string expected = ObjectModelHelpers.
CleanupFileContents
(
1095
string expected = ObjectModelHelpers.
CleanupFileContents
(
1124
string expected = ObjectModelHelpers.
CleanupFileContents
(
1179
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<Project ToolsVersion=""msbuilddefaulttoolsversion"" xmlns=""msbuildnamespace"" />");
1314
string expected = ObjectModelHelpers.
CleanupFileContents
(
1339
string expected = ObjectModelHelpers.
CleanupFileContents
(
1363
string expected = ObjectModelHelpers.
CleanupFileContents
(
1419
string expected = ObjectModelHelpers.
CleanupFileContents
(
1445
string expected = ObjectModelHelpers.
CleanupFileContents
(
1468
string expected = ObjectModelHelpers.
CleanupFileContents
(
1489
string expected = ObjectModelHelpers.
CleanupFileContents
(
1509
string expected = ObjectModelHelpers.
CleanupFileContents
(
1531
string expected = ObjectModelHelpers.
CleanupFileContents
(
1562
string expected = ObjectModelHelpers.
CleanupFileContents
(
1585
string expected = ObjectModelHelpers.
CleanupFileContents
(
1603
string expected = ObjectModelHelpers.
CleanupFileContents
(
1623
string expected = ObjectModelHelpers.
CleanupFileContents
(
1644
string expected = ObjectModelHelpers.
CleanupFileContents
(
1666
string expected = ObjectModelHelpers.
CleanupFileContents
(
1685
string expected = ObjectModelHelpers.
CleanupFileContents
(
1706
string expected = ObjectModelHelpers.
CleanupFileContents
(
1728
string expected = ObjectModelHelpers.
CleanupFileContents
(
1752
string expected = ObjectModelHelpers.
CleanupFileContents
(
1778
string expected = ObjectModelHelpers.
CleanupFileContents
(
1804
string expected = ObjectModelHelpers.
CleanupFileContents
(
1832
string expected = ObjectModelHelpers.
CleanupFileContents
(
1855
string expected = ObjectModelHelpers.
CleanupFileContents
(
1884
string expected = ObjectModelHelpers.
CleanupFileContents
(
1912
string expected = ObjectModelHelpers.
CleanupFileContents
(
1944
string expected = ObjectModelHelpers.
CleanupFileContents
(
1980
string expected = ObjectModelHelpers.
CleanupFileContents
(
2007
string expected = ObjectModelHelpers.
CleanupFileContents
(
2029
string expected = ObjectModelHelpers.
CleanupFileContents
(
2052
string expected = ObjectModelHelpers.
CleanupFileContents
(
2075
string expected = ObjectModelHelpers.
CleanupFileContents
(
2099
string expected = ObjectModelHelpers.
CleanupFileContents
(
2122
string expected = ObjectModelHelpers.
CleanupFileContents
(
2144
string expected = ObjectModelHelpers.
CleanupFileContents
(
2167
string expected = ObjectModelHelpers.
CleanupFileContents
(
2190
string expected = ObjectModelHelpers.
CleanupFileContents
(
2214
string expected = ObjectModelHelpers.
CleanupFileContents
(
2238
string expected = ObjectModelHelpers.
CleanupFileContents
(
2316
var projectFileContents = ObjectModelHelpers.
CleanupFileContents
(
2342
var content = ObjectModelHelpers.
CleanupFileContents
(
3124
string expected = ObjectModelHelpers.
CleanupFileContents
(
3199
return ObjectModelHelpers.
CleanupFileContents
(string.Format(expected, expectedItem));
Construction\ProjectFormatting_Tests.cs (28)
51
string content = ObjectModelHelpers.
CleanupFileContents
(@"
60
string reformattedContent = ObjectModelHelpers.
CleanupFileContents
(@"
78
string content = ObjectModelHelpers.
CleanupFileContents
(@"
87
string reformattedContent = ObjectModelHelpers.
CleanupFileContents
(@"
103
string content = ObjectModelHelpers.
CleanupFileContents
(@"
122
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<?xml version=""1.0"" encoding=""utf-16""?>
139
string content = ObjectModelHelpers.
CleanupFileContents
(@"
158
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<?xml version=""1.0"" encoding=""utf-16""?>
175
string content = ObjectModelHelpers.
CleanupFileContents
(@"
193
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<?xml version=""1.0"" encoding=""utf-16""?>
209
string content = ObjectModelHelpers.
CleanupFileContents
(@"<?xml version=""1.0"" encoding=""utf-8""?>
225
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<?xml version=""1.0"" encoding=""utf-8""?>
240
string content = ObjectModelHelpers.
CleanupFileContents
(@"
254
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<?xml version=""1.0"" encoding=""utf-16""?>
269
string content = ObjectModelHelpers.
CleanupFileContents
(@"
292
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<?xml version=""1.0"" encoding=""utf-16""?>
308
string content = ObjectModelHelpers.
CleanupFileContents
(@"
331
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<?xml version=""1.0"" encoding=""utf-16""?>
350
string content = ObjectModelHelpers.
CleanupFileContents
(@"
497
string content = ObjectModelHelpers.
CleanupFileContents
(@"
512
string content = ObjectModelHelpers.
CleanupFileContents
(@"
526
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<?xml version=""1.0"" encoding=""utf-8""?>
552
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<Project>
575
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<Project>
596
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<?xml version=`1.0` encoding=`utf-16`?>
619
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<?xml version=""1.0"" encoding=""utf-8""?>
643
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<Project>
685
content = ObjectModelHelpers.
CleanupFileContents
(content);
Construction\ProjectMetadataElement_Tests.cs (16)
558
ObjectModelHelpers.
CleanupFileContents
(projectContents),
586
ObjectModelHelpers.
CleanupFileContents
(updatedProject);
602
ObjectModelHelpers.
CleanupFileContents
(projectContents),
629
ObjectModelHelpers.
CleanupFileContents
(@"
676
ObjectModelHelpers.
CleanupFileContents
(projectContents),
703
ObjectModelHelpers.
CleanupFileContents
(updatedProject);
719
ObjectModelHelpers.
CleanupFileContents
(projectContents),
746
ObjectModelHelpers.
CleanupFileContents
(@"
832
ObjectModelHelpers.
CleanupFileContents
(updatedProject);
895
ObjectModelHelpers.
CleanupFileContents
(updatedProject);
964
ObjectModelHelpers.
CleanupFileContents
(updatedProject);
1007
ObjectModelHelpers.
CleanupFileContents
(@"
1076
ObjectModelHelpers.
CleanupFileContents
(updatedProject);
1116
ObjectModelHelpers.
CleanupFileContents
(@"
1194
ObjectModelHelpers.
CleanupFileContents
(updatedProject);
1241
ObjectModelHelpers.
CleanupFileContents
(@"
Construction\ProjectPropertyGroupElement_Tests.cs (3)
35
string content = ObjectModelHelpers.
CleanupFileContents
(@"
54
string content = ObjectModelHelpers.
CleanupFileContents
(@"
118
string expected = ObjectModelHelpers.
CleanupFileContents
(
Construction\ProjectRootElement_Tests.cs (21)
581
string expected = ObjectModelHelpers.
CleanupFileContents
(
610
string expected = ObjectModelHelpers.
CleanupFileContents
(
707
using ProjectRootElementFromString projectRootElementFromStringUTF16 = new(ObjectModelHelpers.
CleanupFileContents
(@"<?xml version=""1.0"" encoding=""utf-16""?>
713
using ProjectRootElementFromString projectRootElementFromStringUTF8 = new(ObjectModelHelpers.
CleanupFileContents
(@"<?xml version=""1.0"" encoding=""utf-8""?>
719
using ProjectRootElementFromString projectRootElementFromStringASCII = new(ObjectModelHelpers.
CleanupFileContents
(@"<?xml version=""1.0"" encoding=""us-ascii""?>
758
using ProjectRootElementFromString projectRootElementFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
788
string content = ObjectModelHelpers.
CleanupFileContents
(
846
string content = ObjectModelHelpers.
CleanupFileContents
(
1273
using ProjectRootElementFromString projectRootElementFromString = new(ObjectModelHelpers.
CleanupFileContents
(project));
1296
ObjectModelHelpers.
CleanupFileContents
(project),
1345
using var xmlReader = XmlReader.Create(new StringReader(ObjectModelHelpers.
CleanupFileContents
(SimpleProject)));
1538
var initialProjectContents = ObjectModelHelpers.
CleanupFileContents
(
1553
var changedProjectContents1 = ObjectModelHelpers.
CleanupFileContents
(
1570
var changedProjectContents2 = ObjectModelHelpers.
CleanupFileContents
(
1745
File.WriteAllText(initialLocation, ObjectModelHelpers.
CleanupFileContents
(SimpleProject));
1755
using var xmlReader = XmlReader.Create(new StringReader(ObjectModelHelpers.
CleanupFileContents
(ComplexProject)));
1761
File.WriteAllText(reloadLocation, ObjectModelHelpers.
CleanupFileContents
(ComplexProject));
1846
XmlReader.Create(new StringReader(ObjectModelHelpers.
CleanupFileContents
(c))),
1868
act(projectElement, ObjectModelHelpers.
CleanupFileContents
(changedContents));
1968
writer.Write(ObjectModelHelpers.
CleanupFileContents
(EmptyProject));
1977
string content = ObjectModelHelpers.
CleanupFileContents
(ComplexProject);
Construction\WhiteSpacePreservation_Tests.cs (2)
465
var expected = ObjectModelHelpers.
CleanupFileContents
(updatedProject);
471
File.WriteAllText(file, ObjectModelHelpers.
CleanupFileContents
(projectContents));
Definition\DefinitionEditing_Tests.cs (67)
154
string expected = ObjectModelHelpers.
CleanupFileContents
(
181
string expected = ObjectModelHelpers.
CleanupFileContents
(
211
string expected = ObjectModelHelpers.
CleanupFileContents
(
248
string expected = ObjectModelHelpers.
CleanupFileContents
(
351
string expected = ObjectModelHelpers.
CleanupFileContents
(
375
string expected = ObjectModelHelpers.
CleanupFileContents
(
400
string expected = ObjectModelHelpers.
CleanupFileContents
(
426
string expected = ObjectModelHelpers.
CleanupFileContents
(
452
string expected = ObjectModelHelpers.
CleanupFileContents
(
476
string expected = ObjectModelHelpers.
CleanupFileContents
(
501
string expected = ObjectModelHelpers.
CleanupFileContents
(
533
string expected = ObjectModelHelpers.
CleanupFileContents
(
563
string expected = ObjectModelHelpers.
CleanupFileContents
(
592
string expected = ObjectModelHelpers.
CleanupFileContents
(
620
string expected = ObjectModelHelpers.
CleanupFileContents
(
647
string expected = ObjectModelHelpers.
CleanupFileContents
(
680
ObjectModelHelpers.
CleanupFileContents
(
710
var content = ObjectModelHelpers.
CleanupFileContents
(
724
string expected = ObjectModelHelpers.
CleanupFileContents
(
749
var content = ObjectModelHelpers.
CleanupFileContents
(
765
string expected = ObjectModelHelpers.
CleanupFileContents
(
801
ObjectModelHelpers.
CleanupFileContents
(
836
string expected = ObjectModelHelpers.
CleanupFileContents
(
864
string expected = ObjectModelHelpers.
CleanupFileContents
(
989
var content = ObjectModelHelpers.
CleanupFileContents
(
1005
string expected = ObjectModelHelpers.
CleanupFileContents
(
1037
string expected = ObjectModelHelpers.
CleanupFileContents
(
1066
string expected = ObjectModelHelpers.
CleanupFileContents
(
1106
ObjectModelHelpers.
CleanupFileContents
(
1179
string expected = ObjectModelHelpers.
CleanupFileContents
(
1223
string expected = ObjectModelHelpers.
CleanupFileContents
(
1247
expected = ObjectModelHelpers.
CleanupFileContents
(
1272
string expected = ObjectModelHelpers.
CleanupFileContents
(
1308
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<Project ToolsVersion=""msbuilddefaulttoolsversion"" xmlns=""msbuildnamespace"" />");
1324
var content = ObjectModelHelpers.
CleanupFileContents
(
1339
string expected = ObjectModelHelpers.
CleanupFileContents
(
1367
string expected = ObjectModelHelpers.
CleanupFileContents
(
1402
ObjectModelHelpers.
CleanupFileContents
(
1427
var content = ObjectModelHelpers.
CleanupFileContents
(
1477
string expected = ObjectModelHelpers.
CleanupFileContents
(
1502
string expected = ObjectModelHelpers.
CleanupFileContents
(
1826
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<Project ToolsVersion=""msbuilddefaulttoolsversion"" xmlns=""msbuildnamespace"" />");
1849
string expected = ObjectModelHelpers.
CleanupFileContents
(
1871
string expected = ObjectModelHelpers.
CleanupFileContents
(
1899
string expected = ObjectModelHelpers.
CleanupFileContents
(
1929
string expected = ObjectModelHelpers.
CleanupFileContents
(
1976
string expected = ObjectModelHelpers.
CleanupFileContents
(
1998
var content = ObjectModelHelpers.
CleanupFileContents
(
2018
string expected = ObjectModelHelpers.
CleanupFileContents
(
2053
string expected = ObjectModelHelpers.
CleanupFileContents
(
2078
string expected = ObjectModelHelpers.
CleanupFileContents
(
2105
string expected = ObjectModelHelpers.
CleanupFileContents
(
2135
string expected = ObjectModelHelpers.
CleanupFileContents
(
2172
string expected = ObjectModelHelpers.
CleanupFileContents
(
2272
string expected = ObjectModelHelpers.
CleanupFileContents
(
2296
string expected = ObjectModelHelpers.
CleanupFileContents
(
2321
string expected = ObjectModelHelpers.
CleanupFileContents
(
2347
string expected = ObjectModelHelpers.
CleanupFileContents
(
2373
string expected = ObjectModelHelpers.
CleanupFileContents
(
2397
string expected = ObjectModelHelpers.
CleanupFileContents
(
2422
string expected = ObjectModelHelpers.
CleanupFileContents
(
2450
string expected = ObjectModelHelpers.
CleanupFileContents
(
2480
string expected = ObjectModelHelpers.
CleanupFileContents
(
2509
string expected = ObjectModelHelpers.
CleanupFileContents
(
2537
string expected = ObjectModelHelpers.
CleanupFileContents
(
2564
string expected = ObjectModelHelpers.
CleanupFileContents
(
2581
projectContents = ObjectModelHelpers.
CleanupFileContents
(projectContents);
Definition\Project_Tests.cs (37)
92
string projectFileContent = ObjectModelHelpers.
CleanupFileContents
(@"
127
string projectFileContent = ObjectModelHelpers.
CleanupFileContents
(@"
155
string projectFileContent = ObjectModelHelpers.
CleanupFileContents
(@"
227
File.WriteAllText(file, ObjectModelHelpers.
CleanupFileContents
(@"<Project xmlns='msbuildnamespace'/>"));
305
string emptyProject = ObjectModelHelpers.
CleanupFileContents
(@"<Project ToolsVersion=""msbuilddefaulttoolsversion"" xmlns=""msbuildnamespace""/>");
558
string importContent = ObjectModelHelpers.
CleanupFileContents
(@"
573
string projectFileContent = ObjectModelHelpers.
CleanupFileContents
(@"
634
string projectFileContent = ObjectModelHelpers.
CleanupFileContents
(@"
669
string projectFileContent = ObjectModelHelpers.
CleanupFileContents
(@"
703
string projectFileContent = ObjectModelHelpers.
CleanupFileContents
(@"<Project xmlns='msbuildnamespace'>
738
string projectFileContent = ObjectModelHelpers.
CleanupFileContents
(@"
774
string projectFileContent = ObjectModelHelpers.
CleanupFileContents
(@"
1428
var importProjectContents = ObjectModelHelpers.
CleanupFileContents
(
1470
var importProjectContents = ObjectModelHelpers.
CleanupFileContents
(
1485
var changedImportContents = ObjectModelHelpers.
CleanupFileContents
(
1556
var projectContents = ObjectModelHelpers.
CleanupFileContents
(
1571
var changedProjectContents = ObjectModelHelpers.
CleanupFileContents
(
1839
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1867
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1903
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1940
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1992
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2021
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2089
ObjectModelHelpers.
CleanupFileContents
(@"<Project xmlns='msbuildnamespace'>
2096
ObjectModelHelpers.
CleanupFileContents
(@"<Project xmlns='msbuildnamespace'>
2181
string contents = ObjectModelHelpers.
CleanupFileContents
(@"<Project xmlns='msbuildnamespace'/>");
2212
string projectOriginalContents = ObjectModelHelpers.
CleanupFileContents
(@"
2235
string projectOriginalContents = ObjectModelHelpers.
CleanupFileContents
(@"
2257
string projectOriginalContents = ObjectModelHelpers.
CleanupFileContents
(@"
2279
string projectOriginalContents = ObjectModelHelpers.
CleanupFileContents
(@"
2306
string projectOriginalContents = ObjectModelHelpers.
CleanupFileContents
(@"
2323
string projectExpectedContents = ObjectModelHelpers.
CleanupFileContents
(@"
2342
string projectOriginalContents = ObjectModelHelpers.
CleanupFileContents
(@"
2395
string projectOriginalContents = ObjectModelHelpers.
CleanupFileContents
(@"
2650
string projectOriginalContents = ObjectModelHelpers.
CleanupFileContents
(@"
2695
string projectOriginalContents = ObjectModelHelpers.
CleanupFileContents
(@"
4390
string projectFileContent = ObjectModelHelpers.
CleanupFileContents
(@"
Definition\ProjectCollection_Tests.cs (1)
1152
string content = ObjectModelHelpers.
CleanupFileContents
(@"
Definition\ProjectItem_Tests.cs (1)
936
content = ObjectModelHelpers.
CleanupFileContents
(content);
Definition\ProjectItemDefinition_Tests.cs (20)
38
string expected = ObjectModelHelpers.
CleanupFileContents
(
169
ObjectModelHelpers.
CleanupFileContents
(
199
ObjectModelHelpers.
CleanupFileContents
(
233
ObjectModelHelpers.
CleanupFileContents
(
259
ObjectModelHelpers.
CleanupFileContents
(
286
ObjectModelHelpers.
CleanupFileContents
(
314
ObjectModelHelpers.
CleanupFileContents
(
345
ObjectModelHelpers.
CleanupFileContents
(
375
ObjectModelHelpers.
CleanupFileContents
(
403
ObjectModelHelpers.
CleanupFileContents
(
432
ObjectModelHelpers.
CleanupFileContents
(
476
ObjectModelHelpers.
CleanupFileContents
(
498
ObjectModelHelpers.
CleanupFileContents
(
520
ObjectModelHelpers.
CleanupFileContents
(
542
ObjectModelHelpers.
CleanupFileContents
(
564
ObjectModelHelpers.
CleanupFileContents
(
586
ObjectModelHelpers.
CleanupFileContents
(
608
ObjectModelHelpers.
CleanupFileContents
(
630
ObjectModelHelpers.
CleanupFileContents
(
649
ObjectModelHelpers.
CleanupFileContents
(
Definition\ProjectMetadata_Tests.cs (13)
42
string content = ObjectModelHelpers.
CleanupFileContents
(@"
68
string expected = ObjectModelHelpers.
CleanupFileContents
(@"
146
string content = ObjectModelHelpers.
CleanupFileContents
(@"
175
string content = ObjectModelHelpers.
CleanupFileContents
(@"
202
string content = ObjectModelHelpers.
CleanupFileContents
(@"
228
string content = ObjectModelHelpers.
CleanupFileContents
(@"
256
string content = ObjectModelHelpers.
CleanupFileContents
(@"
288
string content = ObjectModelHelpers.
CleanupFileContents
(@"
321
string content = ObjectModelHelpers.
CleanupFileContents
(@"
351
string content = ObjectModelHelpers.
CleanupFileContents
(@"
384
string content = ObjectModelHelpers.
CleanupFileContents
(@"
415
string content = ObjectModelHelpers.
CleanupFileContents
(@"
484
string projectString = ObjectModelHelpers.
CleanupFileContents
(@"<Project DefaultTargets=""Build"" ToolsVersion=""msbuilddefaulttoolsversion"" xmlns=""msbuildnamespace"">
Instance\ProjectInstance_Tests.cs (2)
629
File.WriteAllText(projectA, ObjectModelHelpers.
CleanupFileContents
(contentsA));
630
File.WriteAllText(projectB, ObjectModelHelpers.
CleanupFileContents
(contentsB));
ObjectModelRemoting\Helpers\TestCollectionGroup.cs (2)
15
public static string SampleProjectFile = ObjectModelHelpers.
CleanupFileContents
(@"
39
public static string BigProjectFile = ObjectModelHelpers.
CleanupFileContents
(@"
ObjectModelRemoting\RemoteProjectsProviderMock\ExporterMock.cs (1)
172
content = ObjectModelHelpers.
CleanupFileContents
(content);
TransientIO.cs (1)
106
content = ObjectModelHelpers.
CleanupFileContents
(content);
Microsoft.Build.Engine.UnitTests (474)
BackEnd\BatchingEngine_Tests.cs (1)
487
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(content));
BackEnd\BuildManager_Logging_Tests.cs (2)
110
var cleanedUpChildContents =
CleanupFileContents
(_childProjectWithCustomBuildEvent);
114
var cleanedUpMainContents =
CleanupFileContents
(string.Format(_mainProject, child1ProjectPath));
BackEnd\BuildManager_Tests.cs (100)
122
string contents =
CleanupFileContents
(@"
239
string contents =
CleanupFileContents
(@"
442
Project project = CreateProject(
CleanupFileContents
(contents), MSBuildDefaultToolsVersion, _projectCollection, false);
492
Project project = CreateProject(
CleanupFileContents
(contents), MSBuildDefaultToolsVersion,
554
string contents =
CleanupFileContents
(@"
594
string contents =
CleanupFileContents
(@"
634
string contents =
CleanupFileContents
(@"
682
string contents =
CleanupFileContents
(@"
743
string contents =
CleanupFileContents
($@"
752
string projectContents =
CleanupFileContents
(@"
817
string contents =
CleanupFileContents
(@"
861
string contents =
CleanupFileContents
(@"
916
string contents =
CleanupFileContents
(@"
950
string contents =
CleanupFileContents
(@"
966
string contents =
CleanupFileContents
(@"
1032
string contents =
CleanupFileContents
(@"
1066
string contents =
CleanupFileContents
(@"
1148
string contents =
CleanupFileContents
(@"
1265
string contents =
CleanupFileContents
(@"
1290
string contents =
CleanupFileContents
(@"
1321
string contents =
CleanupFileContents
(@"
1329
string contents2 =
CleanupFileContents
(@"
1357
string contents =
CleanupFileContents
(@"
1366
string contents2 =
CleanupFileContents
(@"
1399
string contents =
CleanupFileContents
(@"
1433
string contents =
CleanupFileContents
(@"
1481
string contents =
CleanupFileContents
(@"
1501
string contents =
CleanupFileContents
(@"
1525
string contents =
CleanupFileContents
(@"
1580
string contents =
CleanupFileContents
(@"
1619
string contents =
CleanupFileContents
(@"
1657
string contents =
CleanupFileContents
(@"
1695
string contents =
CleanupFileContents
(@"
1732
string contents =
CleanupFileContents
(@$"
1765
string contents =
CleanupFileContents
(@"
1794
string contents =
CleanupFileContents
(@"
1830
string contents =
CleanupFileContents
(@"
1868
string contents =
CleanupFileContents
(@"
1891
string contents =
CleanupFileContents
(@"
1911
string contents =
CleanupFileContents
(@"
1937
string contents =
CleanupFileContents
(@"
1969
string contents =
CleanupFileContents
(@"
2010
string contents1 =
CleanupFileContents
($@"
2022
string contents2 =
CleanupFileContents
(@"
2079
string contents1 =
CleanupFileContents
(@"
2086
string contents2 =
CleanupFileContents
(@"
2149
string contents =
CleanupFileContents
(@"
2182
string contents =
CleanupFileContents
(@"
2210
string contents =
CleanupFileContents
(@"
2240
string contents =
CleanupFileContents
(@"
2301
string contents =
CleanupFileContents
(@"
2407
File.WriteAllText(projA,
CleanupFileContents
(contentsA));
2408
File.WriteAllText(projB,
CleanupFileContents
(contentsB));
2468
File.WriteAllText(projA,
CleanupFileContents
(contentsA));
2469
File.WriteAllText(projB,
CleanupFileContents
(contentsB));
2526
File.WriteAllText(projA,
CleanupFileContents
(contentsA));
2527
File.WriteAllText(projB,
CleanupFileContents
(contentsB));
2575
File.WriteAllText(projA,
CleanupFileContents
(contentsA));
2576
File.WriteAllText(projB,
CleanupFileContents
(contentsB));
2731
File.WriteAllText(projA,
CleanupFileContents
(contentsA));
2732
File.WriteAllText(projB,
CleanupFileContents
(contentsB));
2733
File.WriteAllText(projC,
CleanupFileContents
(contentsC));
2828
File.WriteAllText(projA,
CleanupFileContents
(contentsA));
2829
File.WriteAllText(projB,
CleanupFileContents
(contentsB));
2830
File.WriteAllText(projC,
CleanupFileContents
(contentsC));
2928
File.WriteAllText(projA,
CleanupFileContents
(contentsA));
2929
File.WriteAllText(projB,
CleanupFileContents
(contentsB));
2930
File.WriteAllText(projC,
CleanupFileContents
(contentsC));
3014
File.WriteAllText(projA,
CleanupFileContents
(contentsA));
3015
File.WriteAllText(projB,
CleanupFileContents
(contentsB));
3016
File.WriteAllText(projC,
CleanupFileContents
(contentsC));
3086
File.WriteAllText(projA,
CleanupFileContents
(contentsA));
3087
File.WriteAllText(projB,
CleanupFileContents
(contentsB));
3119
File.WriteAllText(projectPath1,
CleanupFileContents
(projectContent));
3124
File.WriteAllText(projectPath2,
CleanupFileContents
(projectContent));
3187
File.WriteAllText(projectPath1,
CleanupFileContents
(projectContent1));
3202
File.WriteAllText(projectPath2,
CleanupFileContents
(projectContent2));
3272
File.WriteAllText(projectPath1,
CleanupFileContents
(projectContent1));
3287
File.WriteAllText(projectPath2,
CleanupFileContents
(projectContent2));
3342
string contents =
CleanupFileContents
(@"
3398
string contents =
CleanupFileContents
(@"
3427
string contents =
CleanupFileContents
(@"
3457
string contents =
CleanupFileContents
(@"
3492
string contents =
CleanupFileContents
(@"
3791
var cleanedUpP2pContents =
CleanupFileContents
(p2pProject);
3795
var cleanedUpMainContents =
CleanupFileContents
(string.Format(mainProject, p2pProjectPath));
3848
File.WriteAllText(importPath,
CleanupFileContents
(importProject));
3947
var cleanedUpChildContents =
CleanupFileContents
(childProject);
3952
var cleanedUpMainContents =
CleanupFileContents
(string.Format(mainProject, child1ProjectPath, child2ProjectPath));
4153
string contents =
CleanupFileContents
(@"
4186
File.WriteAllText(project1,
CleanupFileContents
($@"
4197
File.WriteAllText(project2,
CleanupFileContents
(@"
4228
File.WriteAllText(project1,
CleanupFileContents
($@"
4240
File.WriteAllText(project2,
CleanupFileContents
(@"
4245
File.WriteAllText(project3,
CleanupFileContents
(@"
4269
File.WriteAllText(project1,
CleanupFileContents
($@"
4280
File.WriteAllText(project2,
CleanupFileContents
(@"
4312
File.WriteAllText(project1,
CleanupFileContents
($@"
4323
File.WriteAllText(project2,
CleanupFileContents
($@"
4395
string projectContents = ObjectModelHelpers.
CleanupFileContents
(@"<Project>
BackEnd\BuildRequestConfiguration_Tests.cs (4)
185
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace' />"));
263
string projectBody = ObjectModelHelpers.
CleanupFileContents
(@"
320
string projectBody = ObjectModelHelpers.
CleanupFileContents
(@"
426
string projectBody = ObjectModelHelpers.
CleanupFileContents
(@"
BackEnd\BuildRequestEngine_Tests.cs (1)
240
string content = ObjectModelHelpers.
CleanupFileContents
(@"
BackEnd\ConfigurationMetadata_Tests.cs (1)
146
string projectBody = ObjectModelHelpers.
CleanupFileContents
(@"
BackEnd\IntrinsicTask_Tests.cs (135)
31
string content = ObjectModelHelpers.
CleanupFileContents
(@"
52
string content = ObjectModelHelpers.
CleanupFileContents
(@"
71
string content = ObjectModelHelpers.
CleanupFileContents
(@"
89
string content = ObjectModelHelpers.
CleanupFileContents
(@"
107
string content = ObjectModelHelpers.
CleanupFileContents
(
123
string content = ObjectModelHelpers.
CleanupFileContents
(
145
string content = ObjectModelHelpers.
CleanupFileContents
(
162
string content = ObjectModelHelpers.
CleanupFileContents
(
179
var content = ObjectModelHelpers.
CleanupFileContents
(
196
content = ObjectModelHelpers.
CleanupFileContents
(
216
var content = ObjectModelHelpers.
CleanupFileContents
(
236
string content = ObjectModelHelpers.
CleanupFileContents
(@"
280
string content = ObjectModelHelpers.
CleanupFileContents
(@"
300
string content = ObjectModelHelpers.
CleanupFileContents
(@"
320
string content = ObjectModelHelpers.
CleanupFileContents
("""
341
string content = ObjectModelHelpers.
CleanupFileContents
(@"
361
string content = ObjectModelHelpers.
CleanupFileContents
(@"
382
string content = ObjectModelHelpers.
CleanupFileContents
(@"
406
string content = ObjectModelHelpers.
CleanupFileContents
(@"
431
string content = ObjectModelHelpers.
CleanupFileContents
(@"
453
string content = ObjectModelHelpers.
CleanupFileContents
(@"
480
string content = ObjectModelHelpers.
CleanupFileContents
(@"
506
string content = ObjectModelHelpers.
CleanupFileContents
(@"
532
string content = ObjectModelHelpers.
CleanupFileContents
(@"
561
string content = ObjectModelHelpers.
CleanupFileContents
(@"
583
string content = ObjectModelHelpers.
CleanupFileContents
(@"
609
string content = ObjectModelHelpers.
CleanupFileContents
(@"
635
string content = ObjectModelHelpers.
CleanupFileContents
(@"
666
string content = ObjectModelHelpers.
CleanupFileContents
(@"
690
string content = ObjectModelHelpers.
CleanupFileContents
(@"
709
string content = ObjectModelHelpers.
CleanupFileContents
(@"
736
string content = ObjectModelHelpers.
CleanupFileContents
(@"
760
string content = ObjectModelHelpers.
CleanupFileContents
(@"
776
string content = ObjectModelHelpers.
CleanupFileContents
(@"
794
string content = ObjectModelHelpers.
CleanupFileContents
(@"
809
string content = ObjectModelHelpers.
CleanupFileContents
(@"
831
string content = ObjectModelHelpers.
CleanupFileContents
(@"
854
string content = ObjectModelHelpers.
CleanupFileContents
(@"
876
string content = ObjectModelHelpers.
CleanupFileContents
(@"
903
var content = ObjectModelHelpers.
CleanupFileContents
(
920
content = ObjectModelHelpers.
CleanupFileContents
(
941
var content = ObjectModelHelpers.
CleanupFileContents
(
965
string content = ObjectModelHelpers.
CleanupFileContents
(@"
988
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1011
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1044
string content = ObjectModelHelpers.
CleanupFileContents
(
1077
var content = ObjectModelHelpers.
CleanupFileContents
(
1105
string content = ObjectModelHelpers.
CleanupFileContents
(
1138
string content = ObjectModelHelpers.
CleanupFileContents
(
1161
var content = ObjectModelHelpers.
CleanupFileContents
(
1192
string content = ObjectModelHelpers.
CleanupFileContents
(
1211
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
1234
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
1260
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
1298
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
1328
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
1348
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
1370
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
1390
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
1412
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
1437
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
1469
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
1511
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
1558
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
1606
string content = ObjectModelHelpers.
CleanupFileContents
(
1620
string content = ObjectModelHelpers.
CleanupFileContents
(
1637
string content = ObjectModelHelpers.
CleanupFileContents
(
1660
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
1699
string content = ObjectModelHelpers.
CleanupFileContents
(
1718
string content = ObjectModelHelpers.
CleanupFileContents
(
1737
string content = ObjectModelHelpers.
CleanupFileContents
(
1756
string content = ObjectModelHelpers.
CleanupFileContents
(
1790
string content = ObjectModelHelpers.
CleanupFileContents
(
1827
string content = ObjectModelHelpers.
CleanupFileContents
(
1885
string content = ObjectModelHelpers.
CleanupFileContents
(
1919
string content = ObjectModelHelpers.
CleanupFileContents
(
1955
string content = ObjectModelHelpers.
CleanupFileContents
(
1995
string content = ObjectModelHelpers.
CleanupFileContents
(
2033
string content = ObjectModelHelpers.
CleanupFileContents
(
2063
string content = ObjectModelHelpers.
CleanupFileContents
(
2095
string content = ObjectModelHelpers.
CleanupFileContents
(
2135
string content = ObjectModelHelpers.
CleanupFileContents
(
2176
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2215
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2255
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2284
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2317
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2350
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2388
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2428
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2463
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2493
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2531
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2553
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2578
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2609
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2651
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2696
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2740
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2785
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2823
string content = ObjectModelHelpers.
CleanupFileContents
(
2840
string content = ObjectModelHelpers.
CleanupFileContents
(
2864
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2896
string content = ObjectModelHelpers.
CleanupFileContents
(
2922
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2946
string content = ObjectModelHelpers.
CleanupFileContents
(
2976
string content = ObjectModelHelpers.
CleanupFileContents
(
3008
string content = ObjectModelHelpers.
CleanupFileContents
(
3025
string content = ObjectModelHelpers.
CleanupFileContents
(
3056
string content = ObjectModelHelpers.
CleanupFileContents
(
3100
string content = ObjectModelHelpers.
CleanupFileContents
(@"
3128
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3179
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3220
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3275
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3302
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3350
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3386
File.WriteAllText(importedFile, ObjectModelHelpers.
CleanupFileContents
(@"
3393
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3425
File.WriteAllText(importedFile, ObjectModelHelpers.
CleanupFileContents
(@"
3432
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3463
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3495
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3520
using ProjectRootElementFromString projectRootElementFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3559
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3594
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3623
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3654
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3681
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3710
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3739
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3768
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3805
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3834
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3864
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
BackEnd\MSBuild_Tests.cs (3)
792
var projectFile = env.CreateFile("test.proj", ObjectModelHelpers.
CleanupFileContents
(projectContent));
824
var projectFile = env.CreateFile(projFileName, ObjectModelHelpers.
CleanupFileContents
(projectContent));
871
var projectFile = env.CreateFile("test.proj", ObjectModelHelpers.
CleanupFileContents
(projectContent));
BackEnd\OnError_Tests.cs (16)
36
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
146
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
191
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
223
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
257
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
290
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
322
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
347
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
375
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
403
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
436
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
478
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
503
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
533
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
559
Project p = new Project(XmlReader.Create(new StringReader(ObjectModelHelpers.
CleanupFileContents
(@"
772
return String.Format(ObjectModelHelpers.
CleanupFileContents
(@"
BackEnd\Scheduler_Tests.cs (1)
704
string contents = ObjectModelHelpers.
CleanupFileContents
(@"
BackEnd\SdkResultOutOfProc_Tests.cs (5)
121
File.WriteAllText(projectPath,
CleanupFileContents
(contents));
156
File.WriteAllText(entryProjectPath,
CleanupFileContents
(entryProjectContents));
166
File.WriteAllText(projectWithSdkImportPath,
CleanupFileContents
(projectWithSdkImportContents));
246
File.WriteAllText(Path.Combine(projectFolder, "Sdk1", "Sdk.props"),
CleanupFileContents
(sdk1propsContents));
247
File.WriteAllText(Path.Combine(projectFolder, "Sdk2", "Sdk.props"),
CleanupFileContents
(sdk2propsContents));
BackEnd\TargetUpToDateChecker_Tests.cs (11)
48
var content = ObjectModelHelpers.
CleanupFileContents
(
78
var content = ObjectModelHelpers.
CleanupFileContents
(
104
var content = ObjectModelHelpers.
CleanupFileContents
(
131
content = ObjectModelHelpers.
CleanupFileContents
(
303
string projectText = ObjectModelHelpers.
CleanupFileContents
(@"
332
string projectText = ObjectModelHelpers.
CleanupFileContents
(@"
361
string projectText = ObjectModelHelpers.
CleanupFileContents
(@"
391
string projectText = ObjectModelHelpers.
CleanupFileContents
(@"
426
string projectText = ObjectModelHelpers.
CleanupFileContents
(@"
469
var content = ObjectModelHelpers.
CleanupFileContents
(@"
591
string unformattedProjectXml = ObjectModelHelpers.
CleanupFileContents
(
BackEnd\TaskBuilder_Tests.cs (15)
71
string projectFileContents = ObjectModelHelpers.
CleanupFileContents
(
93
string projectFileContents = ObjectModelHelpers.
CleanupFileContents
(
124
string projectFileContents = ObjectModelHelpers.
CleanupFileContents
(
216
string projectFileContents = ObjectModelHelpers.
CleanupFileContents
(
262
string projectFileContents = ObjectModelHelpers.
CleanupFileContents
(
319
string projectFileContents = ObjectModelHelpers.
CleanupFileContents
(@"
383
string projectFileContents = ObjectModelHelpers.
CleanupFileContents
(@"
439
string projectFileContents = ObjectModelHelpers.
CleanupFileContents
($@"
469
string projectFileContents = ObjectModelHelpers.
CleanupFileContents
(@"
495
string projectFileContents = ObjectModelHelpers.
CleanupFileContents
(@"
520
string projectFileContents = ObjectModelHelpers.
CleanupFileContents
(@"
551
string projectFileContents = ObjectModelHelpers.
CleanupFileContents
(@"
1007
File.WriteAllText(projectAPath, ObjectModelHelpers.
CleanupFileContents
(projectAContents));
1008
File.WriteAllText(projectBPath, ObjectModelHelpers.
CleanupFileContents
(projectBContents));
1183
string projectFileContents = ObjectModelHelpers.
CleanupFileContents
(@"
BackEnd\TaskExecutionHost_Tests.cs (1)
1505
string projectFileContents = ObjectModelHelpers.
CleanupFileContents
(@"
BackEnd\TaskRegistry_Tests.cs (1)
660
var testProject = env.CreateTestProjectWithFiles(ObjectModelHelpers.
CleanupFileContents
(proj));
Construction\ElementLocation_Tests.cs (3)
107
File.WriteAllText(file, ObjectModelHelpers.
CleanupFileContents
("<Project xmlns='msbuildnamespace' ToolsVersion='msbuilddefaulttoolsversion'>\r\n<ItemGroup>") + new string(' ', 70000) + @"<x/></ItemGroup></Project>");
142
File.WriteAllText(file, ObjectModelHelpers.
CleanupFileContents
("<Project xmlns='msbuildnamespace' ToolsVersion='msbuilddefaulttoolsversion'>\r\n<ItemGroup>") + longstring + @" <x/></ItemGroup></Project>");
303
string content = ObjectModelHelpers.
CleanupFileContents
(@"
Construction\SolutionFile_OldParser_Tests.cs (1)
245
string genericProj = ObjectModelHelpers.
CleanupFileContents
(@"
Construction\SolutionProjectGenerator_Tests.cs (2)
532
string classLibraryContentsToolsV4 = ObjectModelHelpers.
CleanupFileContents
(
541
string classLibraryContentsToolsV12 = ObjectModelHelpers.
CleanupFileContents
(
Definition\ProjectItem_Tests.cs (1)
50
ObjectModelHelpers.
CleanupFileContents
(@"
Definition\ToolsetConfigurationReader_Tests.cs (18)
38
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
62
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
98
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
124
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
152
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
204
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
232
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
260
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
288
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
327
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
352
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
377
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
403
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
431
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
466
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
506
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
603
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
638
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
Definition\ToolsetConfigurationReaderTestHelper.cs (1)
26
return WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(content), null);
Definition\ToolsVersion_Tests.cs (8)
320
mockLogger.AssertLogContains(ObjectModelHelpers.
CleanupFileContents
("ToolsVersion=\"msbuilddefaulttoolsversion\""));
357
mockLogger.AssertLogContains(ObjectModelHelpers.
CleanupFileContents
("ToolsVersion=\"msbuilddefaulttoolsversion\""));
392
mockLogger.AssertLogContains(ObjectModelHelpers.
CleanupFileContents
("ToolsVersion=\"msbuilddefaulttoolsversion\""));
454
mockLogger.AssertLogContains(ObjectModelHelpers.
CleanupFileContents
("ToolsVersion=\"msbuilddefaulttoolsversion\""));
600
mockLogger.AssertLogContains(ObjectModelHelpers.
CleanupFileContents
("ToolsVersion=\"msbuilddefaulttoolsversion\""));
642
mockLogger.AssertLogContains(ObjectModelHelpers.
CleanupFileContents
("ToolsVersion=\"msbuilddefaulttoolsversion\""));
798
mockLogger.AssertLogContains(ObjectModelHelpers.
CleanupFileContents
("ToolsVersion=\"msbuilddefaulttoolsversion\""));
909
mockLogger.AssertLogContains(ObjectModelHelpers.
CleanupFileContents
("ToolsVersion=\"msbuilddefaulttoolsversion\""));
Evaluation\Evaluator_Tests.cs (111)
141
string projXml = ObjectModelHelpers.
CleanupFileContents
(@"
149
string fooXml = ObjectModelHelpers.
CleanupFileContents
(@"
155
string barXml = ObjectModelHelpers.
CleanupFileContents
(@"
312
File.WriteAllText(testTargetPath, ObjectModelHelpers.
CleanupFileContents
(testtargets));
313
File.WriteAllText(subdirProjPath, ObjectModelHelpers.
CleanupFileContents
(subdirTestProj));
315
File.WriteAllText(targetDirectoryTargetsPath, ObjectModelHelpers.
CleanupFileContents
(targetDirTargets));
316
File.WriteAllText(targetDirectoryTargetsPath2, ObjectModelHelpers.
CleanupFileContents
(targetDirTargets2));
317
File.WriteAllText(projectDirectoryTargetsPath, ObjectModelHelpers.
CleanupFileContents
(projDirTargets));
318
File.WriteAllText(projectDirectoryTargetsPath2, ObjectModelHelpers.
CleanupFileContents
(projDirTargets2));
441
File.WriteAllText(testTargetPath, ObjectModelHelpers.
CleanupFileContents
(testtargets));
442
File.WriteAllText(subdirProjPath, ObjectModelHelpers.
CleanupFileContents
(subdirTestProj));
444
File.WriteAllText(targetDirectoryTargetsPath, ObjectModelHelpers.
CleanupFileContents
(targetDirTargets));
445
File.WriteAllText(targetDirectoryTargetsPath2, ObjectModelHelpers.
CleanupFileContents
(targetDirTargets2));
446
File.WriteAllText(projectDirectoryTargetsPath, ObjectModelHelpers.
CleanupFileContents
(projDirTargets));
447
File.WriteAllText(projectDirectoryTargetsPath2, ObjectModelHelpers.
CleanupFileContents
(projDirTargets2));
475
string targetA = ObjectModelHelpers.
CleanupFileContents
(@"
483
string targetB = ObjectModelHelpers.
CleanupFileContents
(@"
491
string projectContents = ObjectModelHelpers.
CleanupFileContents
(@"
535
string testtargets = ObjectModelHelpers.
CleanupFileContents
(@"
578
string testtargets = ObjectModelHelpers.
CleanupFileContents
(@"
624
string testtargets = ObjectModelHelpers.
CleanupFileContents
(@"
667
string testtargets = ObjectModelHelpers.
CleanupFileContents
(@"
712
string testtargets = ObjectModelHelpers.
CleanupFileContents
(@"
757
string testtargets = ObjectModelHelpers.
CleanupFileContents
(@"
812
string import = ObjectModelHelpers.
CleanupFileContents
(@"
824
string content = ObjectModelHelpers.
CleanupFileContents
(@"
877
string import = ObjectModelHelpers.
CleanupFileContents
(@"
885
string import2 = ObjectModelHelpers.
CleanupFileContents
(@"
900
string content = ObjectModelHelpers.
CleanupFileContents
(@"
979
string import1 = ObjectModelHelpers.
CleanupFileContents
(@"
986
string import2 = ObjectModelHelpers.
CleanupFileContents
(@"
999
string manifest = ObjectModelHelpers.
CleanupFileContents
(@"
1041
string import1 = ObjectModelHelpers.
CleanupFileContents
(@"
1048
string import2 = ObjectModelHelpers.
CleanupFileContents
(@"
1061
string manifest = ObjectModelHelpers.
CleanupFileContents
(@"
1131
string import1 = ObjectModelHelpers.
CleanupFileContents
(@"
1139
string import2 = ObjectModelHelpers.
CleanupFileContents
(@"
1193
string content = ObjectModelHelpers.
CleanupFileContents
($@"
1258
string content = ObjectModelHelpers.
CleanupFileContents
($@"
1295
string content = ObjectModelHelpers.
CleanupFileContents
($@"
1418
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1438
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1466
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1493
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1512
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1543
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1567
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1607
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1642
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1671
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1710
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1739
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1763
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1794
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1830
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1865
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1898
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1981
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2068
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2132
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2157
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2192
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2303
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2328
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2351
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2876
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2902
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2927
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2953
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2983
string content = ObjectModelHelpers.
CleanupFileContents
(@"
3013
string content = ObjectModelHelpers.
CleanupFileContents
(@"
3043
string content = ObjectModelHelpers.
CleanupFileContents
(@"
3079
string content = ObjectModelHelpers.
CleanupFileContents
(@"
3125
string content = ObjectModelHelpers.
CleanupFileContents
(@"
3154
string content = ObjectModelHelpers.
CleanupFileContents
(@"
3190
string content = ObjectModelHelpers.
CleanupFileContents
(@"
3225
string content = ObjectModelHelpers.
CleanupFileContents
(@"
3253
string content = ObjectModelHelpers.
CleanupFileContents
(@"
3295
string content = ObjectModelHelpers.
CleanupFileContents
(@"
3332
string content = ObjectModelHelpers.
CleanupFileContents
(@"
3370
string projectContents = ObjectModelHelpers.
CleanupFileContents
(@"
3380
string importContents = ObjectModelHelpers.
CleanupFileContents
(@"
3430
string projectContents = ObjectModelHelpers.
CleanupFileContents
(@"
3443
string importContents = ObjectModelHelpers.
CleanupFileContents
(@"
3491
string projectContents = ObjectModelHelpers.
CleanupFileContents
(@"
3503
string importContents = ObjectModelHelpers.
CleanupFileContents
(@"
3553
string projectContents = ObjectModelHelpers.
CleanupFileContents
(@"
3570
string importContents = ObjectModelHelpers.
CleanupFileContents
(@"
3627
string projectContents = ObjectModelHelpers.
CleanupFileContents
(@"
3643
string importContents = ObjectModelHelpers.
CleanupFileContents
(@"
3700
string projectContents = ObjectModelHelpers.
CleanupFileContents
(@"
3711
string project2Contents = ObjectModelHelpers.
CleanupFileContents
(@"
3762
string projectContents = ObjectModelHelpers.
CleanupFileContents
(@"
3773
string project2Contents = ObjectModelHelpers.
CleanupFileContents
(@"
3833
string content = ObjectModelHelpers.
CleanupFileContents
(@"
3899
string content = ObjectModelHelpers.
CleanupFileContents
(@"
3951
string content = ObjectModelHelpers.
CleanupFileContents
(@"
4003
string content = ObjectModelHelpers.
CleanupFileContents
(@"
4061
string content = ObjectModelHelpers.
CleanupFileContents
(@"
4119
string content = ObjectModelHelpers.
CleanupFileContents
(@"
4180
string content = ObjectModelHelpers.
CleanupFileContents
(@"
4232
string content = ObjectModelHelpers.
CleanupFileContents
(@"
4279
string content = ObjectModelHelpers.
CleanupFileContents
(@"
4354
string projectContents = ObjectModelHelpers.
CleanupFileContents
(
4504
string projectContents = ObjectModelHelpers.
CleanupFileContents
(@"
4511
string importContents = ObjectModelHelpers.
CleanupFileContents
(@"
4569
string content = ObjectModelHelpers.
CleanupFileContents
($@"
4677
string content = ObjectModelHelpers.
CleanupFileContents
(@"
4976
string projectContents = ObjectModelHelpers.
CleanupFileContents
(@"
4994
string testTargets = ObjectModelHelpers.
CleanupFileContents
(@"
5042
string testtargets = ObjectModelHelpers.
CleanupFileContents
(@$"
Evaluation\Preprocessor_Tests.cs (22)
61
string expected = ObjectModelHelpers.
CleanupFileContents
(
90
string expected = ObjectModelHelpers.
CleanupFileContents
(
134
string expected = ObjectModelHelpers.
CleanupFileContents
(
178
string expected = ObjectModelHelpers.
CleanupFileContents
(
222
string expected = ObjectModelHelpers.
CleanupFileContents
(
270
string expected = ObjectModelHelpers.
CleanupFileContents
(
304
string expected = ObjectModelHelpers.
CleanupFileContents
(
340
string one = ObjectModelHelpers.
CleanupFileContents
(
352
string two = ObjectModelHelpers.
CleanupFileContents
(
376
string expected = ObjectModelHelpers.
CleanupFileContents
(
425
string expected = ObjectModelHelpers.
CleanupFileContents
(
483
string expected = ObjectModelHelpers.
CleanupFileContents
(
556
string expected = ObjectModelHelpers.
CleanupFileContents
(
617
string expected = ObjectModelHelpers.
CleanupFileContents
(
677
string expected = ObjectModelHelpers.
CleanupFileContents
(
733
string expected = ObjectModelHelpers.
CleanupFileContents
(
798
string expected = ObjectModelHelpers.
CleanupFileContents
(
815
string content = ObjectModelHelpers.
CleanupFileContents
(@"
832
string expected = ObjectModelHelpers.
CleanupFileContents
(
888
string expected = ObjectModelHelpers.
CleanupFileContents
(
997
string expected = ObjectModelHelpers.
CleanupFileContents
(
1115
string expected = ObjectModelHelpers.
CleanupFileContents
(
EvaluationProfiler_Tests.cs (1)
267
var content =
CleanupFileContents
(projectContent);
Instance\HostServices_Tests.cs (2)
477
string contents = ObjectModelHelpers.
CleanupFileContents
(@"
496
string contents = ObjectModelHelpers.
CleanupFileContents
(@"
Instance\ProjectInstance_Internal_Tests.cs (1)
690
using ProjectRootElementFromString projectRootElementFromString = new(ObjectModelHelpers.
CleanupFileContents
(projectContents));
Instance\TaskItem_Tests.cs (3)
243
string content = ObjectModelHelpers.
CleanupFileContents
(@"
296
string content = ObjectModelHelpers.
CleanupFileContents
(@"
350
string content = ObjectModelHelpers.
CleanupFileContents
(@"
InvalidProjectFileException_Tests.cs (2)
35
File.WriteAllText(file, ObjectModelHelpers.
CleanupFileContents
(@"
67
File.WriteAllText(file, ObjectModelHelpers.
CleanupFileContents
(@"
Utilities_Tests.cs (1)
78
TransientTestFile inputFile = env.CreateFile("tempInput.tmp", ObjectModelHelpers.
CleanupFileContents
(@"
Microsoft.Build.Tasks.UnitTests (6)
MSBuild_Tests.cs (1)
160
string projectContents = ObjectModelHelpers.
CleanupFileContents
(@"
ResolveSDKReference_Tests.cs (5)
3742
string tempProjectContents = ObjectModelHelpers.
CleanupFileContents
(
3885
string tempProjectContents = ObjectModelHelpers.
CleanupFileContents
(
4010
string tempProjectContents = ObjectModelHelpers.
CleanupFileContents
(
4117
string tempProjectContents = ObjectModelHelpers.
CleanupFileContents
(
4257
string tempProjectContents = ObjectModelHelpers.
CleanupFileContents
(@"
Microsoft.Build.UnitTests.Shared (15)
EngineTestEnvironment.cs (1)
130
File.WriteAllText(ProjectFile, ObjectModelHelpers.
CleanupFileContents
(projectContents));
ObjectModelHelpers.cs (14)
607
return
CleanupFileContents
(aString);
658
File.WriteAllText(projectFilePath,
CleanupFileContents
(fileContents));
665
var cleanedProject =
CleanupFileContents
(projectContents);
733
XmlReader.Create(new StringReader(
CleanupFileContents
(xml)), readerSettings),
821
newExpectedProjectContents = NormalizeXmlWhitespace(
CleanupFileContents
(newExpectedProjectContents));
918
File.WriteAllText(fullFilePath,
CleanupFileContents
(fileContents));
924
File.WriteAllText(fullFilePath,
CleanupFileContents
(fileContents), encoding);
1101
using ProjectRootElementFromString projectRootElementFromString = new(
CleanupFileContents
(content));
1358
content = ObjectModelHelpers.
CleanupFileContents
(content);
1373
content = ObjectModelHelpers.
CleanupFileContents
(content);
1399
content = ObjectModelHelpers.
CleanupFileContents
(content);
1459
content = ObjectModelHelpers.
CleanupFileContents
(content);
1567
ObjectModelHelpers.
CleanupFileContents
(newExpectedProjectContents));
1619
File.WriteAllText(createdProjectFile, ObjectModelHelpers.
CleanupFileContents
(projectContents));
Microsoft.Build.Utilities.UnitTests (10)
MuxLogger_Tests.cs (7)
45
string projectBody = ObjectModelHelpers.
CleanupFileContents
(@"
81
string projectBody = ObjectModelHelpers.
CleanupFileContents
(@"
140
string projectBody = ObjectModelHelpers.
CleanupFileContents
(@"
182
string projectBody1 = ObjectModelHelpers.
CleanupFileContents
(@"
191
string projectBody2 = ObjectModelHelpers.
CleanupFileContents
(@"
249
string projectBody = ObjectModelHelpers.
CleanupFileContents
(@"
299
string projectBody = ObjectModelHelpers.
CleanupFileContents
(@"
PlatformManifest_Tests.cs (1)
326
File.WriteAllText(Path.Combine(_manifestDirectory, "Platform.xml"), ObjectModelHelpers.
CleanupFileContents
(contents));
ToolLocationHelper_Tests.cs (2)
3552
string tempProjectContents = ObjectModelHelpers.
CleanupFileContents
(@"
3621
string tempProjectContents = ObjectModelHelpers.
CleanupFileContents
(@"