808 references to CleanupFileContents
Microsoft.Build.CommandLine.UnitTests (25)
XMake_Tests.cs (25)
1094
string projectString = ObjectModelHelpers.
CleanupFileContents
(
1263
string content = ObjectModelHelpers.
CleanupFileContents
("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>");
1305
string content = ObjectModelHelpers.
CleanupFileContents
("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>");
1322
string content = ObjectModelHelpers.
CleanupFileContents
("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>");
1343
string content = ObjectModelHelpers.
CleanupFileContents
("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>");
1380
string content = ObjectModelHelpers.
CleanupFileContents
("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>");
1415
string content = ObjectModelHelpers.
CleanupFileContents
("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>");
1440
string content = ObjectModelHelpers.
CleanupFileContents
("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>");
1459
string content = ObjectModelHelpers.
CleanupFileContents
("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>");
1477
var content = ObjectModelHelpers.
CleanupFileContents
("<Project><Target Name='t'><Message Text='Completed'/></Target></Project>");
1495
string content = ObjectModelHelpers.
CleanupFileContents
("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>");
1514
var content = ObjectModelHelpers.
CleanupFileContents
(
1554
string contents = ObjectModelHelpers.
CleanupFileContents
(@"
2282
string projectContents = ObjectModelHelpers.
CleanupFileContents
($@"<Project>
2317
string projectContents = ObjectModelHelpers.
CleanupFileContents
($@"<Project>
2364
string projectContents = ObjectModelHelpers.
CleanupFileContents
($@"<Project>
2410
string projectContents = ObjectModelHelpers.
CleanupFileContents
(
2429
string projectContents = ObjectModelHelpers.
CleanupFileContents
(
2454
string projectContents = ObjectModelHelpers.
CleanupFileContents
($@"<Project>
2499
string projectContents = ObjectModelHelpers.
CleanupFileContents
(@"<Project>
2518
var testProject = _env.CreateFile("Importer.proj", ObjectModelHelpers.
CleanupFileContents
(@"
2558
string projectContents = ObjectModelHelpers.
CleanupFileContents
(@$"<Project>
2598
var testSolution = _env.CreateFile("TestSolution.sln", ObjectModelHelpers.
CleanupFileContents
(solutionFileContents));
2649
string projectContents = ObjectModelHelpers.
CleanupFileContents
("""
2703
string projectContents = ObjectModelHelpers.
CleanupFileContents
(@"<Project>
Microsoft.Build.Engine.OM.UnitTests (277)
Construction\ConstructionEditing_Tests.cs (62)
33
string expected = ObjectModelHelpers.
CleanupFileContents
(
61
string expected = ObjectModelHelpers.
CleanupFileContents
(
83
string expected = ObjectModelHelpers.
CleanupFileContents
(
374
string expected = ObjectModelHelpers.
CleanupFileContents
(
397
string expected = ObjectModelHelpers.
CleanupFileContents
(
416
string expected = ObjectModelHelpers.
CleanupFileContents
(
443
string expected = ObjectModelHelpers.
CleanupFileContents
(
472
string expected = ObjectModelHelpers.
CleanupFileContents
(
495
string expected = ObjectModelHelpers.
CleanupFileContents
(
519
string expected = ObjectModelHelpers.
CleanupFileContents
(
547
string expected = ObjectModelHelpers.
CleanupFileContents
(
568
string expected = ObjectModelHelpers.
CleanupFileContents
(
591
string expected = ObjectModelHelpers.
CleanupFileContents
(
612
string expected = ObjectModelHelpers.
CleanupFileContents
(
684
string expected = ObjectModelHelpers.
CleanupFileContents
(
712
string expected = ObjectModelHelpers.
CleanupFileContents
(
751
string expected = ObjectModelHelpers.
CleanupFileContents
(
1094
string expected = ObjectModelHelpers.
CleanupFileContents
(
1123
string expected = ObjectModelHelpers.
CleanupFileContents
(
1178
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<Project ToolsVersion=""msbuilddefaulttoolsversion"" xmlns=""msbuildnamespace"" />");
1313
string expected = ObjectModelHelpers.
CleanupFileContents
(
1338
string expected = ObjectModelHelpers.
CleanupFileContents
(
1362
string expected = ObjectModelHelpers.
CleanupFileContents
(
1418
string expected = ObjectModelHelpers.
CleanupFileContents
(
1444
string expected = ObjectModelHelpers.
CleanupFileContents
(
1467
string expected = ObjectModelHelpers.
CleanupFileContents
(
1488
string expected = ObjectModelHelpers.
CleanupFileContents
(
1508
string expected = ObjectModelHelpers.
CleanupFileContents
(
1530
string expected = ObjectModelHelpers.
CleanupFileContents
(
1561
string expected = ObjectModelHelpers.
CleanupFileContents
(
1584
string expected = ObjectModelHelpers.
CleanupFileContents
(
1602
string expected = ObjectModelHelpers.
CleanupFileContents
(
1622
string expected = ObjectModelHelpers.
CleanupFileContents
(
1643
string expected = ObjectModelHelpers.
CleanupFileContents
(
1665
string expected = ObjectModelHelpers.
CleanupFileContents
(
1684
string expected = ObjectModelHelpers.
CleanupFileContents
(
1705
string expected = ObjectModelHelpers.
CleanupFileContents
(
1727
string expected = ObjectModelHelpers.
CleanupFileContents
(
1751
string expected = ObjectModelHelpers.
CleanupFileContents
(
1777
string expected = ObjectModelHelpers.
CleanupFileContents
(
1803
string expected = ObjectModelHelpers.
CleanupFileContents
(
1831
string expected = ObjectModelHelpers.
CleanupFileContents
(
1854
string expected = ObjectModelHelpers.
CleanupFileContents
(
1883
string expected = ObjectModelHelpers.
CleanupFileContents
(
1911
string expected = ObjectModelHelpers.
CleanupFileContents
(
1943
string expected = ObjectModelHelpers.
CleanupFileContents
(
1979
string expected = ObjectModelHelpers.
CleanupFileContents
(
2006
string expected = ObjectModelHelpers.
CleanupFileContents
(
2028
string expected = ObjectModelHelpers.
CleanupFileContents
(
2051
string expected = ObjectModelHelpers.
CleanupFileContents
(
2074
string expected = ObjectModelHelpers.
CleanupFileContents
(
2098
string expected = ObjectModelHelpers.
CleanupFileContents
(
2121
string expected = ObjectModelHelpers.
CleanupFileContents
(
2143
string expected = ObjectModelHelpers.
CleanupFileContents
(
2166
string expected = ObjectModelHelpers.
CleanupFileContents
(
2189
string expected = ObjectModelHelpers.
CleanupFileContents
(
2213
string expected = ObjectModelHelpers.
CleanupFileContents
(
2237
string expected = ObjectModelHelpers.
CleanupFileContents
(
2315
var projectFileContents = ObjectModelHelpers.
CleanupFileContents
(
2341
var content = ObjectModelHelpers.
CleanupFileContents
(
3123
string expected = ObjectModelHelpers.
CleanupFileContents
(
3198
return ObjectModelHelpers.
CleanupFileContents
(string.Format(expected, expectedItem));
Construction\ProjectFormatting_Tests.cs (28)
50
string content = ObjectModelHelpers.
CleanupFileContents
(@"
59
string reformattedContent = ObjectModelHelpers.
CleanupFileContents
(@"
77
string content = ObjectModelHelpers.
CleanupFileContents
(@"
86
string reformattedContent = ObjectModelHelpers.
CleanupFileContents
(@"
102
string content = ObjectModelHelpers.
CleanupFileContents
(@"
121
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<?xml version=""1.0"" encoding=""utf-16""?>
138
string content = ObjectModelHelpers.
CleanupFileContents
(@"
157
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<?xml version=""1.0"" encoding=""utf-16""?>
174
string content = ObjectModelHelpers.
CleanupFileContents
(@"
192
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<?xml version=""1.0"" encoding=""utf-16""?>
208
string content = ObjectModelHelpers.
CleanupFileContents
(@"<?xml version=""1.0"" encoding=""utf-8""?>
224
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<?xml version=""1.0"" encoding=""utf-8""?>
239
string content = ObjectModelHelpers.
CleanupFileContents
(@"
253
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<?xml version=""1.0"" encoding=""utf-16""?>
268
string content = ObjectModelHelpers.
CleanupFileContents
(@"
291
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<?xml version=""1.0"" encoding=""utf-16""?>
307
string content = ObjectModelHelpers.
CleanupFileContents
(@"
330
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<?xml version=""1.0"" encoding=""utf-16""?>
349
string content = ObjectModelHelpers.
CleanupFileContents
(@"
496
string content = ObjectModelHelpers.
CleanupFileContents
(@"
511
string content = ObjectModelHelpers.
CleanupFileContents
(@"
525
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<?xml version=""1.0"" encoding=""utf-8""?>
551
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<Project>
574
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<Project>
595
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<?xml version=`1.0` encoding=`utf-16`?>
618
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<?xml version=""1.0"" encoding=""utf-8""?>
642
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<Project>
684
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)
33
string content = ObjectModelHelpers.
CleanupFileContents
(@"
52
string content = ObjectModelHelpers.
CleanupFileContents
(@"
116
string expected = ObjectModelHelpers.
CleanupFileContents
(
Construction\ProjectRootElement_Tests.cs (21)
577
string expected = ObjectModelHelpers.
CleanupFileContents
(
606
string expected = ObjectModelHelpers.
CleanupFileContents
(
703
using ProjectRootElementFromString projectRootElementFromStringUTF16 = new(ObjectModelHelpers.
CleanupFileContents
(@"<?xml version=""1.0"" encoding=""utf-16""?>
709
using ProjectRootElementFromString projectRootElementFromStringUTF8 = new(ObjectModelHelpers.
CleanupFileContents
(@"<?xml version=""1.0"" encoding=""utf-8""?>
715
using ProjectRootElementFromString projectRootElementFromStringASCII = new(ObjectModelHelpers.
CleanupFileContents
(@"<?xml version=""1.0"" encoding=""us-ascii""?>
754
using ProjectRootElementFromString projectRootElementFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
784
string content = ObjectModelHelpers.
CleanupFileContents
(
842
string content = ObjectModelHelpers.
CleanupFileContents
(
1269
using ProjectRootElementFromString projectRootElementFromString = new(ObjectModelHelpers.
CleanupFileContents
(project));
1292
ObjectModelHelpers.
CleanupFileContents
(project),
1341
using var xmlReader = XmlReader.Create(new StringReader(ObjectModelHelpers.
CleanupFileContents
(SimpleProject)));
1534
var initialProjectContents = ObjectModelHelpers.
CleanupFileContents
(
1549
var changedProjectContents1 = ObjectModelHelpers.
CleanupFileContents
(
1566
var changedProjectContents2 = ObjectModelHelpers.
CleanupFileContents
(
1741
File.WriteAllText(initialLocation, ObjectModelHelpers.
CleanupFileContents
(SimpleProject));
1751
using var xmlReader = XmlReader.Create(new StringReader(ObjectModelHelpers.
CleanupFileContents
(ComplexProject)));
1757
File.WriteAllText(reloadLocation, ObjectModelHelpers.
CleanupFileContents
(ComplexProject));
1842
XmlReader.Create(new StringReader(ObjectModelHelpers.
CleanupFileContents
(c))),
1864
act(projectElement, ObjectModelHelpers.
CleanupFileContents
(changedContents));
1964
writer.Write(ObjectModelHelpers.
CleanupFileContents
(EmptyProject));
1973
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)
152
string expected = ObjectModelHelpers.
CleanupFileContents
(
179
string expected = ObjectModelHelpers.
CleanupFileContents
(
209
string expected = ObjectModelHelpers.
CleanupFileContents
(
246
string expected = ObjectModelHelpers.
CleanupFileContents
(
349
string expected = ObjectModelHelpers.
CleanupFileContents
(
373
string expected = ObjectModelHelpers.
CleanupFileContents
(
398
string expected = ObjectModelHelpers.
CleanupFileContents
(
424
string expected = ObjectModelHelpers.
CleanupFileContents
(
450
string expected = ObjectModelHelpers.
CleanupFileContents
(
474
string expected = ObjectModelHelpers.
CleanupFileContents
(
499
string expected = ObjectModelHelpers.
CleanupFileContents
(
531
string expected = ObjectModelHelpers.
CleanupFileContents
(
561
string expected = ObjectModelHelpers.
CleanupFileContents
(
590
string expected = ObjectModelHelpers.
CleanupFileContents
(
618
string expected = ObjectModelHelpers.
CleanupFileContents
(
645
string expected = ObjectModelHelpers.
CleanupFileContents
(
678
ObjectModelHelpers.
CleanupFileContents
(
708
var content = ObjectModelHelpers.
CleanupFileContents
(
722
string expected = ObjectModelHelpers.
CleanupFileContents
(
747
var content = ObjectModelHelpers.
CleanupFileContents
(
763
string expected = ObjectModelHelpers.
CleanupFileContents
(
799
ObjectModelHelpers.
CleanupFileContents
(
834
string expected = ObjectModelHelpers.
CleanupFileContents
(
862
string expected = ObjectModelHelpers.
CleanupFileContents
(
987
var content = ObjectModelHelpers.
CleanupFileContents
(
1003
string expected = ObjectModelHelpers.
CleanupFileContents
(
1035
string expected = ObjectModelHelpers.
CleanupFileContents
(
1064
string expected = ObjectModelHelpers.
CleanupFileContents
(
1104
ObjectModelHelpers.
CleanupFileContents
(
1177
string expected = ObjectModelHelpers.
CleanupFileContents
(
1221
string expected = ObjectModelHelpers.
CleanupFileContents
(
1245
expected = ObjectModelHelpers.
CleanupFileContents
(
1270
string expected = ObjectModelHelpers.
CleanupFileContents
(
1306
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<Project ToolsVersion=""msbuilddefaulttoolsversion"" xmlns=""msbuildnamespace"" />");
1322
var content = ObjectModelHelpers.
CleanupFileContents
(
1337
string expected = ObjectModelHelpers.
CleanupFileContents
(
1365
string expected = ObjectModelHelpers.
CleanupFileContents
(
1400
ObjectModelHelpers.
CleanupFileContents
(
1425
var content = ObjectModelHelpers.
CleanupFileContents
(
1475
string expected = ObjectModelHelpers.
CleanupFileContents
(
1500
string expected = ObjectModelHelpers.
CleanupFileContents
(
1824
string expected = ObjectModelHelpers.
CleanupFileContents
(@"<Project ToolsVersion=""msbuilddefaulttoolsversion"" xmlns=""msbuildnamespace"" />");
1847
string expected = ObjectModelHelpers.
CleanupFileContents
(
1869
string expected = ObjectModelHelpers.
CleanupFileContents
(
1897
string expected = ObjectModelHelpers.
CleanupFileContents
(
1927
string expected = ObjectModelHelpers.
CleanupFileContents
(
1974
string expected = ObjectModelHelpers.
CleanupFileContents
(
1996
var content = ObjectModelHelpers.
CleanupFileContents
(
2016
string expected = ObjectModelHelpers.
CleanupFileContents
(
2051
string expected = ObjectModelHelpers.
CleanupFileContents
(
2076
string expected = ObjectModelHelpers.
CleanupFileContents
(
2103
string expected = ObjectModelHelpers.
CleanupFileContents
(
2133
string expected = ObjectModelHelpers.
CleanupFileContents
(
2170
string expected = ObjectModelHelpers.
CleanupFileContents
(
2270
string expected = ObjectModelHelpers.
CleanupFileContents
(
2294
string expected = ObjectModelHelpers.
CleanupFileContents
(
2319
string expected = ObjectModelHelpers.
CleanupFileContents
(
2345
string expected = ObjectModelHelpers.
CleanupFileContents
(
2371
string expected = ObjectModelHelpers.
CleanupFileContents
(
2395
string expected = ObjectModelHelpers.
CleanupFileContents
(
2420
string expected = ObjectModelHelpers.
CleanupFileContents
(
2448
string expected = ObjectModelHelpers.
CleanupFileContents
(
2478
string expected = ObjectModelHelpers.
CleanupFileContents
(
2507
string expected = ObjectModelHelpers.
CleanupFileContents
(
2535
string expected = ObjectModelHelpers.
CleanupFileContents
(
2562
string expected = ObjectModelHelpers.
CleanupFileContents
(
2579
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)
934
content = ObjectModelHelpers.
CleanupFileContents
(content);
Definition\ProjectItemDefinition_Tests.cs (20)
37
string expected = ObjectModelHelpers.
CleanupFileContents
(
168
ObjectModelHelpers.
CleanupFileContents
(
198
ObjectModelHelpers.
CleanupFileContents
(
232
ObjectModelHelpers.
CleanupFileContents
(
258
ObjectModelHelpers.
CleanupFileContents
(
285
ObjectModelHelpers.
CleanupFileContents
(
313
ObjectModelHelpers.
CleanupFileContents
(
344
ObjectModelHelpers.
CleanupFileContents
(
374
ObjectModelHelpers.
CleanupFileContents
(
402
ObjectModelHelpers.
CleanupFileContents
(
431
ObjectModelHelpers.
CleanupFileContents
(
475
ObjectModelHelpers.
CleanupFileContents
(
497
ObjectModelHelpers.
CleanupFileContents
(
519
ObjectModelHelpers.
CleanupFileContents
(
541
ObjectModelHelpers.
CleanupFileContents
(
563
ObjectModelHelpers.
CleanupFileContents
(
585
ObjectModelHelpers.
CleanupFileContents
(
607
ObjectModelHelpers.
CleanupFileContents
(
629
ObjectModelHelpers.
CleanupFileContents
(
648
ObjectModelHelpers.
CleanupFileContents
(
Definition\ProjectMetadata_Tests.cs (13)
41
string content = ObjectModelHelpers.
CleanupFileContents
(@"
67
string expected = ObjectModelHelpers.
CleanupFileContents
(@"
145
string content = ObjectModelHelpers.
CleanupFileContents
(@"
174
string content = ObjectModelHelpers.
CleanupFileContents
(@"
201
string content = ObjectModelHelpers.
CleanupFileContents
(@"
227
string content = ObjectModelHelpers.
CleanupFileContents
(@"
255
string content = ObjectModelHelpers.
CleanupFileContents
(@"
287
string content = ObjectModelHelpers.
CleanupFileContents
(@"
320
string content = ObjectModelHelpers.
CleanupFileContents
(@"
350
string content = ObjectModelHelpers.
CleanupFileContents
(@"
383
string content = ObjectModelHelpers.
CleanupFileContents
(@"
414
string content = ObjectModelHelpers.
CleanupFileContents
(@"
483
string projectString = ObjectModelHelpers.
CleanupFileContents
(@"<Project DefaultTargets=""Build"" ToolsVersion=""msbuilddefaulttoolsversion"" xmlns=""msbuildnamespace"">
Instance\ProjectInstance_Tests.cs (2)
628
File.WriteAllText(projectA, ObjectModelHelpers.
CleanupFileContents
(contentsA));
629
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)
170
content = ObjectModelHelpers.
CleanupFileContents
(content);
TransientIO.cs (1)
106
content = ObjectModelHelpers.
CleanupFileContents
(content);
Microsoft.Build.Engine.UnitTests (475)
BackEnd\BatchingEngine_Tests.cs (1)
487
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(content));
BackEnd\BuildManager_Logging_Tests.cs (2)
100
var cleanedUpChildContents =
CleanupFileContents
(_childProjectWithCustomBuildEvent);
104
var cleanedUpMainContents =
CleanupFileContents
(string.Format(_mainProject, child1ProjectPath));
BackEnd\BuildManager_Tests.cs (100)
121
string contents =
CleanupFileContents
(@"
238
string contents =
CleanupFileContents
(@"
441
Project project = CreateProject(
CleanupFileContents
(contents), MSBuildDefaultToolsVersion, _projectCollection, false);
491
Project project = CreateProject(
CleanupFileContents
(contents), MSBuildDefaultToolsVersion,
553
string contents =
CleanupFileContents
(@"
593
string contents =
CleanupFileContents
(@"
633
string contents =
CleanupFileContents
(@"
681
string contents =
CleanupFileContents
(@"
742
string contents =
CleanupFileContents
($@"
751
string projectContents =
CleanupFileContents
(@"
816
string contents =
CleanupFileContents
(@"
860
string contents =
CleanupFileContents
(@"
915
string contents =
CleanupFileContents
(@"
949
string contents =
CleanupFileContents
(@"
965
string contents =
CleanupFileContents
(@"
1031
string contents =
CleanupFileContents
(@"
1065
string contents =
CleanupFileContents
(@"
1147
string contents =
CleanupFileContents
(@"
1264
string contents =
CleanupFileContents
(@"
1289
string contents =
CleanupFileContents
(@"
1320
string contents =
CleanupFileContents
(@"
1328
string contents2 =
CleanupFileContents
(@"
1356
string contents =
CleanupFileContents
(@"
1365
string contents2 =
CleanupFileContents
(@"
1398
string contents =
CleanupFileContents
(@"
1432
string contents =
CleanupFileContents
(@"
1480
string contents =
CleanupFileContents
(@"
1500
string contents =
CleanupFileContents
(@"
1524
string contents =
CleanupFileContents
(@"
1579
string contents =
CleanupFileContents
(@"
1618
string contents =
CleanupFileContents
(@"
1656
string contents =
CleanupFileContents
(@"
1694
string contents =
CleanupFileContents
(@"
1731
string contents =
CleanupFileContents
(@$"
1764
string contents =
CleanupFileContents
(@"
1793
string contents =
CleanupFileContents
(@"
1829
string contents =
CleanupFileContents
(@"
1867
string contents =
CleanupFileContents
(@"
1890
string contents =
CleanupFileContents
(@"
1910
string contents =
CleanupFileContents
(@"
1936
string contents =
CleanupFileContents
(@"
1968
string contents =
CleanupFileContents
(@"
2009
string contents1 =
CleanupFileContents
($@"
2021
string contents2 =
CleanupFileContents
(@"
2078
string contents1 =
CleanupFileContents
(@"
2085
string contents2 =
CleanupFileContents
(@"
2148
string contents =
CleanupFileContents
(@"
2181
string contents =
CleanupFileContents
(@"
2209
string contents =
CleanupFileContents
(@"
2239
string contents =
CleanupFileContents
(@"
2300
string contents =
CleanupFileContents
(@"
2406
File.WriteAllText(projA,
CleanupFileContents
(contentsA));
2407
File.WriteAllText(projB,
CleanupFileContents
(contentsB));
2467
File.WriteAllText(projA,
CleanupFileContents
(contentsA));
2468
File.WriteAllText(projB,
CleanupFileContents
(contentsB));
2525
File.WriteAllText(projA,
CleanupFileContents
(contentsA));
2526
File.WriteAllText(projB,
CleanupFileContents
(contentsB));
2574
File.WriteAllText(projA,
CleanupFileContents
(contentsA));
2575
File.WriteAllText(projB,
CleanupFileContents
(contentsB));
2730
File.WriteAllText(projA,
CleanupFileContents
(contentsA));
2731
File.WriteAllText(projB,
CleanupFileContents
(contentsB));
2732
File.WriteAllText(projC,
CleanupFileContents
(contentsC));
2827
File.WriteAllText(projA,
CleanupFileContents
(contentsA));
2828
File.WriteAllText(projB,
CleanupFileContents
(contentsB));
2829
File.WriteAllText(projC,
CleanupFileContents
(contentsC));
2927
File.WriteAllText(projA,
CleanupFileContents
(contentsA));
2928
File.WriteAllText(projB,
CleanupFileContents
(contentsB));
2929
File.WriteAllText(projC,
CleanupFileContents
(contentsC));
3013
File.WriteAllText(projA,
CleanupFileContents
(contentsA));
3014
File.WriteAllText(projB,
CleanupFileContents
(contentsB));
3015
File.WriteAllText(projC,
CleanupFileContents
(contentsC));
3085
File.WriteAllText(projA,
CleanupFileContents
(contentsA));
3086
File.WriteAllText(projB,
CleanupFileContents
(contentsB));
3118
File.WriteAllText(projectPath1,
CleanupFileContents
(projectContent));
3123
File.WriteAllText(projectPath2,
CleanupFileContents
(projectContent));
3186
File.WriteAllText(projectPath1,
CleanupFileContents
(projectContent1));
3201
File.WriteAllText(projectPath2,
CleanupFileContents
(projectContent2));
3271
File.WriteAllText(projectPath1,
CleanupFileContents
(projectContent1));
3286
File.WriteAllText(projectPath2,
CleanupFileContents
(projectContent2));
3341
string contents =
CleanupFileContents
(@"
3397
string contents =
CleanupFileContents
(@"
3426
string contents =
CleanupFileContents
(@"
3456
string contents =
CleanupFileContents
(@"
3491
string contents =
CleanupFileContents
(@"
3790
var cleanedUpP2pContents =
CleanupFileContents
(p2pProject);
3794
var cleanedUpMainContents =
CleanupFileContents
(string.Format(mainProject, p2pProjectPath));
3847
File.WriteAllText(importPath,
CleanupFileContents
(importProject));
3946
var cleanedUpChildContents =
CleanupFileContents
(childProject);
3951
var cleanedUpMainContents =
CleanupFileContents
(string.Format(mainProject, child1ProjectPath, child2ProjectPath));
4152
string contents =
CleanupFileContents
(@"
4185
File.WriteAllText(project1,
CleanupFileContents
($@"
4196
File.WriteAllText(project2,
CleanupFileContents
(@"
4227
File.WriteAllText(project1,
CleanupFileContents
($@"
4239
File.WriteAllText(project2,
CleanupFileContents
(@"
4244
File.WriteAllText(project3,
CleanupFileContents
(@"
4268
File.WriteAllText(project1,
CleanupFileContents
($@"
4279
File.WriteAllText(project2,
CleanupFileContents
(@"
4311
File.WriteAllText(project1,
CleanupFileContents
($@"
4322
File.WriteAllText(project2,
CleanupFileContents
($@"
4394
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)
239
string content = ObjectModelHelpers.
CleanupFileContents
(@"
BackEnd\ConfigurationMetadata_Tests.cs (1)
144
string projectBody = ObjectModelHelpers.
CleanupFileContents
(@"
BackEnd\IntrinsicTask_Tests.cs (135)
30
string content = ObjectModelHelpers.
CleanupFileContents
(@"
51
string content = ObjectModelHelpers.
CleanupFileContents
(@"
70
string content = ObjectModelHelpers.
CleanupFileContents
(@"
88
string content = ObjectModelHelpers.
CleanupFileContents
(@"
106
string content = ObjectModelHelpers.
CleanupFileContents
(
122
string content = ObjectModelHelpers.
CleanupFileContents
(
144
string content = ObjectModelHelpers.
CleanupFileContents
(
161
string content = ObjectModelHelpers.
CleanupFileContents
(
178
var content = ObjectModelHelpers.
CleanupFileContents
(
195
content = ObjectModelHelpers.
CleanupFileContents
(
215
var content = ObjectModelHelpers.
CleanupFileContents
(
235
string content = ObjectModelHelpers.
CleanupFileContents
(@"
279
string content = ObjectModelHelpers.
CleanupFileContents
(@"
299
string content = ObjectModelHelpers.
CleanupFileContents
(@"
319
string content = ObjectModelHelpers.
CleanupFileContents
("""
340
string content = ObjectModelHelpers.
CleanupFileContents
(@"
360
string content = ObjectModelHelpers.
CleanupFileContents
(@"
381
string content = ObjectModelHelpers.
CleanupFileContents
(@"
405
string content = ObjectModelHelpers.
CleanupFileContents
(@"
430
string content = ObjectModelHelpers.
CleanupFileContents
(@"
452
string content = ObjectModelHelpers.
CleanupFileContents
(@"
479
string content = ObjectModelHelpers.
CleanupFileContents
(@"
505
string content = ObjectModelHelpers.
CleanupFileContents
(@"
531
string content = ObjectModelHelpers.
CleanupFileContents
(@"
560
string content = ObjectModelHelpers.
CleanupFileContents
(@"
582
string content = ObjectModelHelpers.
CleanupFileContents
(@"
608
string content = ObjectModelHelpers.
CleanupFileContents
(@"
634
string content = ObjectModelHelpers.
CleanupFileContents
(@"
665
string content = ObjectModelHelpers.
CleanupFileContents
(@"
689
string content = ObjectModelHelpers.
CleanupFileContents
(@"
708
string content = ObjectModelHelpers.
CleanupFileContents
(@"
735
string content = ObjectModelHelpers.
CleanupFileContents
(@"
759
string content = ObjectModelHelpers.
CleanupFileContents
(@"
775
string content = ObjectModelHelpers.
CleanupFileContents
(@"
793
string content = ObjectModelHelpers.
CleanupFileContents
(@"
808
string content = ObjectModelHelpers.
CleanupFileContents
(@"
830
string content = ObjectModelHelpers.
CleanupFileContents
(@"
853
string content = ObjectModelHelpers.
CleanupFileContents
(@"
875
string content = ObjectModelHelpers.
CleanupFileContents
(@"
902
var content = ObjectModelHelpers.
CleanupFileContents
(
919
content = ObjectModelHelpers.
CleanupFileContents
(
940
var content = ObjectModelHelpers.
CleanupFileContents
(
964
string content = ObjectModelHelpers.
CleanupFileContents
(@"
987
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1010
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1043
string content = ObjectModelHelpers.
CleanupFileContents
(
1076
var content = ObjectModelHelpers.
CleanupFileContents
(
1104
string content = ObjectModelHelpers.
CleanupFileContents
(
1137
string content = ObjectModelHelpers.
CleanupFileContents
(
1160
var content = ObjectModelHelpers.
CleanupFileContents
(
1191
string content = ObjectModelHelpers.
CleanupFileContents
(
1210
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
1233
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
1259
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
1297
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
1327
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
1347
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
1369
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
1389
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
1411
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
1436
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
1468
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
1510
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
1557
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
1605
string content = ObjectModelHelpers.
CleanupFileContents
(
1619
string content = ObjectModelHelpers.
CleanupFileContents
(
1636
string content = ObjectModelHelpers.
CleanupFileContents
(
1659
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
1698
string content = ObjectModelHelpers.
CleanupFileContents
(
1717
string content = ObjectModelHelpers.
CleanupFileContents
(
1736
string content = ObjectModelHelpers.
CleanupFileContents
(
1755
string content = ObjectModelHelpers.
CleanupFileContents
(
1789
string content = ObjectModelHelpers.
CleanupFileContents
(
1826
string content = ObjectModelHelpers.
CleanupFileContents
(
1884
string content = ObjectModelHelpers.
CleanupFileContents
(
1918
string content = ObjectModelHelpers.
CleanupFileContents
(
1954
string content = ObjectModelHelpers.
CleanupFileContents
(
1994
string content = ObjectModelHelpers.
CleanupFileContents
(
2032
string content = ObjectModelHelpers.
CleanupFileContents
(
2062
string content = ObjectModelHelpers.
CleanupFileContents
(
2094
string content = ObjectModelHelpers.
CleanupFileContents
(
2134
string content = ObjectModelHelpers.
CleanupFileContents
(
2175
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2214
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2254
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2283
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2316
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2349
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2387
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2427
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2462
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2492
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2530
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2552
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2577
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2608
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2650
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2695
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2739
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2784
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2822
string content = ObjectModelHelpers.
CleanupFileContents
(
2839
string content = ObjectModelHelpers.
CleanupFileContents
(
2863
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2895
string content = ObjectModelHelpers.
CleanupFileContents
(
2921
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
2945
string content = ObjectModelHelpers.
CleanupFileContents
(
2975
string content = ObjectModelHelpers.
CleanupFileContents
(
3007
string content = ObjectModelHelpers.
CleanupFileContents
(
3024
string content = ObjectModelHelpers.
CleanupFileContents
(
3055
string content = ObjectModelHelpers.
CleanupFileContents
(
3099
string content = ObjectModelHelpers.
CleanupFileContents
(@"
3127
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3178
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3219
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3274
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3301
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3349
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3385
File.WriteAllText(importedFile, ObjectModelHelpers.
CleanupFileContents
(@"
3392
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3424
File.WriteAllText(importedFile, ObjectModelHelpers.
CleanupFileContents
(@"
3431
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3462
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3494
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3519
using ProjectRootElementFromString projectRootElementFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3558
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3593
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3622
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3653
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3680
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3709
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3738
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3767
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3804
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3833
using ProjectFromString projectFromString = new(ObjectModelHelpers.
CleanupFileContents
(@"
3863
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)
703
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)
47
var content = ObjectModelHelpers.
CleanupFileContents
(
77
var content = ObjectModelHelpers.
CleanupFileContents
(
103
var content = ObjectModelHelpers.
CleanupFileContents
(
130
content = ObjectModelHelpers.
CleanupFileContents
(
302
string projectText = ObjectModelHelpers.
CleanupFileContents
(@"
331
string projectText = ObjectModelHelpers.
CleanupFileContents
(@"
360
string projectText = ObjectModelHelpers.
CleanupFileContents
(@"
390
string projectText = ObjectModelHelpers.
CleanupFileContents
(@"
425
string projectText = ObjectModelHelpers.
CleanupFileContents
(@"
468
var content = ObjectModelHelpers.
CleanupFileContents
(@"
590
string unformattedProjectXml = ObjectModelHelpers.
CleanupFileContents
(
BackEnd\TaskBuilder_Tests.cs (15)
70
string projectFileContents = ObjectModelHelpers.
CleanupFileContents
(
92
string projectFileContents = ObjectModelHelpers.
CleanupFileContents
(
123
string projectFileContents = ObjectModelHelpers.
CleanupFileContents
(
215
string projectFileContents = ObjectModelHelpers.
CleanupFileContents
(
261
string projectFileContents = ObjectModelHelpers.
CleanupFileContents
(
318
string projectFileContents = ObjectModelHelpers.
CleanupFileContents
(@"
382
string projectFileContents = ObjectModelHelpers.
CleanupFileContents
(@"
438
string projectFileContents = ObjectModelHelpers.
CleanupFileContents
($@"
468
string projectFileContents = ObjectModelHelpers.
CleanupFileContents
(@"
494
string projectFileContents = ObjectModelHelpers.
CleanupFileContents
(@"
519
string projectFileContents = ObjectModelHelpers.
CleanupFileContents
(@"
550
string projectFileContents = ObjectModelHelpers.
CleanupFileContents
(@"
1006
File.WriteAllText(projectAPath, ObjectModelHelpers.
CleanupFileContents
(projectAContents));
1007
File.WriteAllText(projectBPath, ObjectModelHelpers.
CleanupFileContents
(projectBContents));
1182
string projectFileContents = ObjectModelHelpers.
CleanupFileContents
(@"
BackEnd\TaskExecutionHost_Tests.cs (1)
1504
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)
577
string classLibraryContentsToolsV4 = ObjectModelHelpers.
CleanupFileContents
(
586
string classLibraryContentsToolsV12 = ObjectModelHelpers.
CleanupFileContents
(
Definition\ProjectItem_Tests.cs (1)
48
ObjectModelHelpers.
CleanupFileContents
(@"
Definition\ToolsetConfigurationReader_Tests.cs (18)
37
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
61
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
97
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
123
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
151
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
203
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
231
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
259
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
287
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
326
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
351
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
376
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
402
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
430
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
465
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
505
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
602
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
637
ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(@"
Definition\ToolsetConfigurationReaderTestHelper.cs (1)
26
return WriteConfigFile(ObjectModelHelpers.
CleanupFileContents
(content), null);
Definition\ToolsVersion_Tests.cs (8)
318
mockLogger.AssertLogContains(ObjectModelHelpers.
CleanupFileContents
("ToolsVersion=\"msbuilddefaulttoolsversion\""));
355
mockLogger.AssertLogContains(ObjectModelHelpers.
CleanupFileContents
("ToolsVersion=\"msbuilddefaulttoolsversion\""));
390
mockLogger.AssertLogContains(ObjectModelHelpers.
CleanupFileContents
("ToolsVersion=\"msbuilddefaulttoolsversion\""));
452
mockLogger.AssertLogContains(ObjectModelHelpers.
CleanupFileContents
("ToolsVersion=\"msbuilddefaulttoolsversion\""));
598
mockLogger.AssertLogContains(ObjectModelHelpers.
CleanupFileContents
("ToolsVersion=\"msbuilddefaulttoolsversion\""));
640
mockLogger.AssertLogContains(ObjectModelHelpers.
CleanupFileContents
("ToolsVersion=\"msbuilddefaulttoolsversion\""));
796
mockLogger.AssertLogContains(ObjectModelHelpers.
CleanupFileContents
("ToolsVersion=\"msbuilddefaulttoolsversion\""));
907
mockLogger.AssertLogContains(ObjectModelHelpers.
CleanupFileContents
("ToolsVersion=\"msbuilddefaulttoolsversion\""));
Evaluation\Evaluator_Tests.cs (111)
176
string projXml = ObjectModelHelpers.
CleanupFileContents
(@"
184
string fooXml = ObjectModelHelpers.
CleanupFileContents
(@"
190
string barXml = ObjectModelHelpers.
CleanupFileContents
(@"
347
File.WriteAllText(testTargetPath, ObjectModelHelpers.
CleanupFileContents
(testtargets));
348
File.WriteAllText(subdirProjPath, ObjectModelHelpers.
CleanupFileContents
(subdirTestProj));
350
File.WriteAllText(targetDirectoryTargetsPath, ObjectModelHelpers.
CleanupFileContents
(targetDirTargets));
351
File.WriteAllText(targetDirectoryTargetsPath2, ObjectModelHelpers.
CleanupFileContents
(targetDirTargets2));
352
File.WriteAllText(projectDirectoryTargetsPath, ObjectModelHelpers.
CleanupFileContents
(projDirTargets));
353
File.WriteAllText(projectDirectoryTargetsPath2, ObjectModelHelpers.
CleanupFileContents
(projDirTargets2));
476
File.WriteAllText(testTargetPath, ObjectModelHelpers.
CleanupFileContents
(testtargets));
477
File.WriteAllText(subdirProjPath, ObjectModelHelpers.
CleanupFileContents
(subdirTestProj));
479
File.WriteAllText(targetDirectoryTargetsPath, ObjectModelHelpers.
CleanupFileContents
(targetDirTargets));
480
File.WriteAllText(targetDirectoryTargetsPath2, ObjectModelHelpers.
CleanupFileContents
(targetDirTargets2));
481
File.WriteAllText(projectDirectoryTargetsPath, ObjectModelHelpers.
CleanupFileContents
(projDirTargets));
482
File.WriteAllText(projectDirectoryTargetsPath2, ObjectModelHelpers.
CleanupFileContents
(projDirTargets2));
510
string targetA = ObjectModelHelpers.
CleanupFileContents
(@"
518
string targetB = ObjectModelHelpers.
CleanupFileContents
(@"
526
string projectContents = ObjectModelHelpers.
CleanupFileContents
(@"
570
string testtargets = ObjectModelHelpers.
CleanupFileContents
(@"
613
string testtargets = ObjectModelHelpers.
CleanupFileContents
(@"
659
string testtargets = ObjectModelHelpers.
CleanupFileContents
(@"
702
string testtargets = ObjectModelHelpers.
CleanupFileContents
(@"
747
string testtargets = ObjectModelHelpers.
CleanupFileContents
(@"
792
string testtargets = ObjectModelHelpers.
CleanupFileContents
(@"
847
string import = ObjectModelHelpers.
CleanupFileContents
(@"
859
string content = ObjectModelHelpers.
CleanupFileContents
(@"
912
string import = ObjectModelHelpers.
CleanupFileContents
(@"
920
string import2 = ObjectModelHelpers.
CleanupFileContents
(@"
935
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1014
string import1 = ObjectModelHelpers.
CleanupFileContents
(@"
1021
string import2 = ObjectModelHelpers.
CleanupFileContents
(@"
1034
string manifest = ObjectModelHelpers.
CleanupFileContents
(@"
1076
string import1 = ObjectModelHelpers.
CleanupFileContents
(@"
1083
string import2 = ObjectModelHelpers.
CleanupFileContents
(@"
1096
string manifest = ObjectModelHelpers.
CleanupFileContents
(@"
1166
string import1 = ObjectModelHelpers.
CleanupFileContents
(@"
1174
string import2 = ObjectModelHelpers.
CleanupFileContents
(@"
1228
string content = ObjectModelHelpers.
CleanupFileContents
($@"
1293
string content = ObjectModelHelpers.
CleanupFileContents
($@"
1330
string content = ObjectModelHelpers.
CleanupFileContents
($@"
1453
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1473
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1501
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1528
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1547
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1578
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1602
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1642
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1677
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1706
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1745
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1774
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1798
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1829
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1865
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1900
string content = ObjectModelHelpers.
CleanupFileContents
(@"
1933
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2016
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2103
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2167
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2192
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2227
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2338
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2363
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2386
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2911
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2937
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2962
string content = ObjectModelHelpers.
CleanupFileContents
(@"
2988
string content = ObjectModelHelpers.
CleanupFileContents
(@"
3018
string content = ObjectModelHelpers.
CleanupFileContents
(@"
3048
string content = ObjectModelHelpers.
CleanupFileContents
(@"
3078
string content = ObjectModelHelpers.
CleanupFileContents
(@"
3114
string content = ObjectModelHelpers.
CleanupFileContents
(@"
3160
string content = ObjectModelHelpers.
CleanupFileContents
(@"
3189
string content = ObjectModelHelpers.
CleanupFileContents
(@"
3225
string content = ObjectModelHelpers.
CleanupFileContents
(@"
3260
string content = ObjectModelHelpers.
CleanupFileContents
(@"
3288
string content = ObjectModelHelpers.
CleanupFileContents
(@"
3330
string content = ObjectModelHelpers.
CleanupFileContents
(@"
3367
string content = ObjectModelHelpers.
CleanupFileContents
(@"
3405
string projectContents = ObjectModelHelpers.
CleanupFileContents
(@"
3415
string importContents = ObjectModelHelpers.
CleanupFileContents
(@"
3465
string projectContents = ObjectModelHelpers.
CleanupFileContents
(@"
3478
string importContents = ObjectModelHelpers.
CleanupFileContents
(@"
3526
string projectContents = ObjectModelHelpers.
CleanupFileContents
(@"
3538
string importContents = ObjectModelHelpers.
CleanupFileContents
(@"
3588
string projectContents = ObjectModelHelpers.
CleanupFileContents
(@"
3605
string importContents = ObjectModelHelpers.
CleanupFileContents
(@"
3662
string projectContents = ObjectModelHelpers.
CleanupFileContents
(@"
3678
string importContents = ObjectModelHelpers.
CleanupFileContents
(@"
3735
string projectContents = ObjectModelHelpers.
CleanupFileContents
(@"
3746
string project2Contents = ObjectModelHelpers.
CleanupFileContents
(@"
3797
string projectContents = ObjectModelHelpers.
CleanupFileContents
(@"
3808
string project2Contents = ObjectModelHelpers.
CleanupFileContents
(@"
3868
string content = ObjectModelHelpers.
CleanupFileContents
(@"
3934
string content = ObjectModelHelpers.
CleanupFileContents
(@"
3986
string content = ObjectModelHelpers.
CleanupFileContents
(@"
4038
string content = ObjectModelHelpers.
CleanupFileContents
(@"
4096
string content = ObjectModelHelpers.
CleanupFileContents
(@"
4154
string content = ObjectModelHelpers.
CleanupFileContents
(@"
4215
string content = ObjectModelHelpers.
CleanupFileContents
(@"
4267
string content = ObjectModelHelpers.
CleanupFileContents
(@"
4314
string content = ObjectModelHelpers.
CleanupFileContents
(@"
4389
string projectContents = ObjectModelHelpers.
CleanupFileContents
(
4539
string projectContents = ObjectModelHelpers.
CleanupFileContents
(@"
4546
string importContents = ObjectModelHelpers.
CleanupFileContents
(@"
4604
string content = ObjectModelHelpers.
CleanupFileContents
($@"
4712
string content = ObjectModelHelpers.
CleanupFileContents
(@"
5011
string projectContents = ObjectModelHelpers.
CleanupFileContents
(@"
5029
string testTargets = ObjectModelHelpers.
CleanupFileContents
(@"
5077
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
(
998
string expected = ObjectModelHelpers.
CleanupFileContents
(
1116
string expected = ObjectModelHelpers.
CleanupFileContents
(
EvaluationProfiler_Tests.cs (1)
266
var content =
CleanupFileContents
(projectContent);
Instance\HostServices_Tests.cs (2)
476
string contents = ObjectModelHelpers.
CleanupFileContents
(@"
495
string contents = ObjectModelHelpers.
CleanupFileContents
(@"
Instance\ProjectInstance_Internal_Tests.cs (1)
689
using ProjectRootElementFromString projectRootElementFromString = new(ObjectModelHelpers.
CleanupFileContents
(projectContents));
Instance\TaskItem_Tests.cs (3)
241
string content = ObjectModelHelpers.
CleanupFileContents
(@"
294
string content = ObjectModelHelpers.
CleanupFileContents
(@"
348
string content = ObjectModelHelpers.
CleanupFileContents
(@"
InvalidProjectFileException_Tests.cs (2)
34
File.WriteAllText(file, ObjectModelHelpers.
CleanupFileContents
(@"
66
File.WriteAllText(file, ObjectModelHelpers.
CleanupFileContents
(@"
ProjectCache\ProjectCacheTests.cs (1)
1668
string content = 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)
3741
string tempProjectContents = ObjectModelHelpers.
CleanupFileContents
(
3884
string tempProjectContents = ObjectModelHelpers.
CleanupFileContents
(
4009
string tempProjectContents = ObjectModelHelpers.
CleanupFileContents
(
4116
string tempProjectContents = ObjectModelHelpers.
CleanupFileContents
(
4256
string tempProjectContents = ObjectModelHelpers.
CleanupFileContents
(@"
Microsoft.Build.UnitTests.Shared (15)
EngineTestEnvironment.cs (1)
131
File.WriteAllText(ProjectFile, ObjectModelHelpers.
CleanupFileContents
(projectContents));
ObjectModelHelpers.cs (14)
606
return
CleanupFileContents
(aString);
657
File.WriteAllText(projectFilePath,
CleanupFileContents
(fileContents));
664
var cleanedProject =
CleanupFileContents
(projectContents);
732
XmlReader.Create(new StringReader(
CleanupFileContents
(xml)), readerSettings),
820
newExpectedProjectContents = NormalizeXmlWhitespace(
CleanupFileContents
(newExpectedProjectContents));
917
File.WriteAllText(fullFilePath,
CleanupFileContents
(fileContents));
923
File.WriteAllText(fullFilePath,
CleanupFileContents
(fileContents), encoding);
1100
using ProjectRootElementFromString projectRootElementFromString = new(
CleanupFileContents
(content));
1357
content = ObjectModelHelpers.
CleanupFileContents
(content);
1372
content = ObjectModelHelpers.
CleanupFileContents
(content);
1398
content = ObjectModelHelpers.
CleanupFileContents
(content);
1458
content = ObjectModelHelpers.
CleanupFileContents
(content);
1568
ObjectModelHelpers.
CleanupFileContents
(newExpectedProjectContents));
1620
File.WriteAllText(createdProjectFile, ObjectModelHelpers.
CleanupFileContents
(projectContents));
Microsoft.Build.Utilities.UnitTests (10)
MuxLogger_Tests.cs (7)
43
string projectBody = ObjectModelHelpers.
CleanupFileContents
(@"
79
string projectBody = ObjectModelHelpers.
CleanupFileContents
(@"
138
string projectBody = ObjectModelHelpers.
CleanupFileContents
(@"
180
string projectBody1 = ObjectModelHelpers.
CleanupFileContents
(@"
189
string projectBody2 = ObjectModelHelpers.
CleanupFileContents
(@"
247
string projectBody = ObjectModelHelpers.
CleanupFileContents
(@"
297
string projectBody = ObjectModelHelpers.
CleanupFileContents
(@"
PlatformManifest_Tests.cs (1)
326
File.WriteAllText(Path.Combine(_manifestDirectory, "Platform.xml"), ObjectModelHelpers.
CleanupFileContents
(contents));
ToolLocationHelper_Tests.cs (2)
3551
string tempProjectContents = ObjectModelHelpers.
CleanupFileContents
(@"
3620
string tempProjectContents = ObjectModelHelpers.
CleanupFileContents
(@"