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