827 references to CleanupFileContents
Microsoft.Build.CommandLine.UnitTests (37)
XMake_BinlogSwitch_Tests.cs (11)
40string content = ObjectModelHelpers.CleanupFileContents("<Project><Target Name='t'><Message Text='Hello'/></Target></Project>"); 59string content = ObjectModelHelpers.CleanupFileContents("<Project><Target Name='t'><Message Text='Hello'/></Target></Project>"); 80string content = ObjectModelHelpers.CleanupFileContents("<Project><Target Name='t'><Message Text='Hello'/></Target></Project>"); 106string content = ObjectModelHelpers.CleanupFileContents("<Project><Target Name='t'><Message Text='Hello'/></Target></Project>"); 133string content = ObjectModelHelpers.CleanupFileContents("<Project><Target Name='t'><Message Text='Hello'/></Target></Project>"); 157string content = ObjectModelHelpers.CleanupFileContents("<Project><Target Name='t'><Message Text='Hello'/></Target></Project>"); 177string content = ObjectModelHelpers.CleanupFileContents("<Project><Target Name='t'><Message Text='Hello'/></Target></Project>"); 196string content = ObjectModelHelpers.CleanupFileContents("<Project><Target Name='t'><Message Text='Hello'/></Target></Project>"); 216string content = ObjectModelHelpers.CleanupFileContents("<Project><Target Name='t'><Message Text='Hello'/></Target></Project>"); 232string content = ObjectModelHelpers.CleanupFileContents("<Project><Target Name='t'><Message Text='Hello'/></Target></Project>"); 282string content = ObjectModelHelpers.CleanupFileContents("<Project><Target Name='t'><Message Text='Hello'/></Target></Project>");
XMake_Tests.cs (26)
68return ObjectModelHelpers.CleanupFileContents($"<Project>\n" 1191string projectString = ObjectModelHelpers.CleanupFileContents( 1350string content = ObjectModelHelpers.CleanupFileContents("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>"); 1392string content = ObjectModelHelpers.CleanupFileContents("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>"); 1409string content = ObjectModelHelpers.CleanupFileContents("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>"); 1430string content = ObjectModelHelpers.CleanupFileContents("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>"); 1467string content = ObjectModelHelpers.CleanupFileContents("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>"); 1502string content = ObjectModelHelpers.CleanupFileContents("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>"); 1527string content = ObjectModelHelpers.CleanupFileContents("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>"); 1546string content = ObjectModelHelpers.CleanupFileContents("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>"); 1564var content = ObjectModelHelpers.CleanupFileContents("<Project><Target Name='t'><Message Text='Completed'/></Target></Project>"); 1582string content = ObjectModelHelpers.CleanupFileContents("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>"); 1601var content = ObjectModelHelpers.CleanupFileContents( 1641string contents = ObjectModelHelpers.CleanupFileContents(@" 2407string projectContents = ObjectModelHelpers.CleanupFileContents($@"<Project> 2442string projectContents = ObjectModelHelpers.CleanupFileContents($@"<Project> 2489string projectContents = ObjectModelHelpers.CleanupFileContents($@"<Project> 2535string projectContents = ObjectModelHelpers.CleanupFileContents( 2554string projectContents = ObjectModelHelpers.CleanupFileContents( 2579string projectContents = ObjectModelHelpers.CleanupFileContents($@"<Project> 2717string projectContents = ObjectModelHelpers.CleanupFileContents(@"<Project> 2736var testProject = _env.CreateFile("Importer.proj", ObjectModelHelpers.CleanupFileContents(@" 2886string projectContents = ObjectModelHelpers.CleanupFileContents(@$"<Project> 2926var testSolution = _env.CreateFile("TestSolution.sln", ObjectModelHelpers.CleanupFileContents(solutionFileContents)); 2993string projectContents = ObjectModelHelpers.CleanupFileContents(""" 3083string projectContents = ObjectModelHelpers.CleanupFileContents(
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)
557ObjectModelHelpers.CleanupFileContents(projectContents), 585ObjectModelHelpers.CleanupFileContents(updatedProject); 601ObjectModelHelpers.CleanupFileContents(projectContents), 628ObjectModelHelpers.CleanupFileContents(@" 675ObjectModelHelpers.CleanupFileContents(projectContents), 702ObjectModelHelpers.CleanupFileContents(updatedProject); 718ObjectModelHelpers.CleanupFileContents(projectContents), 745ObjectModelHelpers.CleanupFileContents(@" 831ObjectModelHelpers.CleanupFileContents(updatedProject); 894ObjectModelHelpers.CleanupFileContents(updatedProject); 963ObjectModelHelpers.CleanupFileContents(updatedProject); 1006ObjectModelHelpers.CleanupFileContents(@" 1075ObjectModelHelpers.CleanupFileContents(updatedProject); 1115ObjectModelHelpers.CleanupFileContents(@" 1193ObjectModelHelpers.CleanupFileContents(updatedProject); 1240ObjectModelHelpers.CleanupFileContents(@"
Construction\ProjectPropertyGroupElement_Tests.cs (3)
33string content = ObjectModelHelpers.CleanupFileContents(@" 52string content = ObjectModelHelpers.CleanupFileContents(@" 116string expected = ObjectModelHelpers.CleanupFileContents(
Construction\ProjectRootElement_Tests.cs (21)
578string expected = ObjectModelHelpers.CleanupFileContents( 607string expected = ObjectModelHelpers.CleanupFileContents( 704using ProjectRootElementFromString projectRootElementFromStringUTF16 = new(ObjectModelHelpers.CleanupFileContents(@"<?xml version=""1.0"" encoding=""utf-16""?> 710using ProjectRootElementFromString projectRootElementFromStringUTF8 = new(ObjectModelHelpers.CleanupFileContents(@"<?xml version=""1.0"" encoding=""utf-8""?> 716using ProjectRootElementFromString projectRootElementFromStringASCII = new(ObjectModelHelpers.CleanupFileContents(@"<?xml version=""1.0"" encoding=""us-ascii""?> 755using ProjectRootElementFromString projectRootElementFromString = new(ObjectModelHelpers.CleanupFileContents(@" 785string content = ObjectModelHelpers.CleanupFileContents( 843string content = ObjectModelHelpers.CleanupFileContents( 1270using ProjectRootElementFromString projectRootElementFromString = new(ObjectModelHelpers.CleanupFileContents(project)); 1293ObjectModelHelpers.CleanupFileContents(project), 1342using var xmlReader = XmlReader.Create(new StringReader(ObjectModelHelpers.CleanupFileContents(SimpleProject))); 1535var initialProjectContents = ObjectModelHelpers.CleanupFileContents( 1550var changedProjectContents1 = ObjectModelHelpers.CleanupFileContents( 1567var changedProjectContents2 = ObjectModelHelpers.CleanupFileContents( 1742File.WriteAllText(initialLocation, ObjectModelHelpers.CleanupFileContents(SimpleProject)); 1752using var xmlReader = XmlReader.Create(new StringReader(ObjectModelHelpers.CleanupFileContents(ComplexProject))); 1758File.WriteAllText(reloadLocation, ObjectModelHelpers.CleanupFileContents(ComplexProject)); 1843XmlReader.Create(new StringReader(ObjectModelHelpers.CleanupFileContents(c))), 1865act(projectElement, ObjectModelHelpers.CleanupFileContents(changedContents)); 1965writer.Write(ObjectModelHelpers.CleanupFileContents(EmptyProject)); 1974string content = ObjectModelHelpers.CleanupFileContents(ComplexProject);
Construction\WhiteSpacePreservation_Tests.cs (2)
466var expected = ObjectModelHelpers.CleanupFileContents(updatedProject); 472File.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)
91string projectFileContent = ObjectModelHelpers.CleanupFileContents(@" 126string projectFileContent = ObjectModelHelpers.CleanupFileContents(@" 154string projectFileContent = ObjectModelHelpers.CleanupFileContents(@" 226File.WriteAllText(file, ObjectModelHelpers.CleanupFileContents(@"<Project xmlns='msbuildnamespace'/>")); 304string emptyProject = ObjectModelHelpers.CleanupFileContents(@"<Project ToolsVersion=""msbuilddefaulttoolsversion"" xmlns=""msbuildnamespace""/>"); 557string importContent = ObjectModelHelpers.CleanupFileContents(@" 572string projectFileContent = ObjectModelHelpers.CleanupFileContents(@" 633string projectFileContent = ObjectModelHelpers.CleanupFileContents(@" 668string projectFileContent = ObjectModelHelpers.CleanupFileContents(@" 702string projectFileContent = ObjectModelHelpers.CleanupFileContents(@"<Project xmlns='msbuildnamespace'> 737string projectFileContent = ObjectModelHelpers.CleanupFileContents(@" 773string projectFileContent = ObjectModelHelpers.CleanupFileContents(@" 1427var importProjectContents = ObjectModelHelpers.CleanupFileContents( 1469var importProjectContents = ObjectModelHelpers.CleanupFileContents( 1484var changedImportContents = ObjectModelHelpers.CleanupFileContents( 1555var projectContents = ObjectModelHelpers.CleanupFileContents( 1570var changedProjectContents = ObjectModelHelpers.CleanupFileContents( 1838string content = ObjectModelHelpers.CleanupFileContents(@" 1866string content = ObjectModelHelpers.CleanupFileContents(@" 1902string content = ObjectModelHelpers.CleanupFileContents(@" 1939string content = ObjectModelHelpers.CleanupFileContents(@" 1991string content = ObjectModelHelpers.CleanupFileContents(@" 2020string content = ObjectModelHelpers.CleanupFileContents(@" 2088ObjectModelHelpers.CleanupFileContents(@"<Project xmlns='msbuildnamespace'> 2095ObjectModelHelpers.CleanupFileContents(@"<Project xmlns='msbuildnamespace'> 2180string contents = ObjectModelHelpers.CleanupFileContents(@"<Project xmlns='msbuildnamespace'/>"); 2211string projectOriginalContents = ObjectModelHelpers.CleanupFileContents(@" 2234string projectOriginalContents = ObjectModelHelpers.CleanupFileContents(@" 2256string projectOriginalContents = ObjectModelHelpers.CleanupFileContents(@" 2278string projectOriginalContents = ObjectModelHelpers.CleanupFileContents(@" 2305string projectOriginalContents = ObjectModelHelpers.CleanupFileContents(@" 2322string projectExpectedContents = ObjectModelHelpers.CleanupFileContents(@" 2341string projectOriginalContents = ObjectModelHelpers.CleanupFileContents(@" 2394string projectOriginalContents = ObjectModelHelpers.CleanupFileContents(@" 2649string projectOriginalContents = ObjectModelHelpers.CleanupFileContents(@" 2694string projectOriginalContents = ObjectModelHelpers.CleanupFileContents(@" 4429string 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)
627File.WriteAllText(projectA, ObjectModelHelpers.CleanupFileContents(contentsA)); 628File.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)
107content = ObjectModelHelpers.CleanupFileContents(content);
Microsoft.Build.Engine.UnitTests (482)
BackEnd\BatchingEngine_Tests.cs (1)
487using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(content));
BackEnd\BuildManager_Logging_Tests.cs (2)
97var cleanedUpChildContents = CleanupFileContents(_childProjectWithCustomBuildEvent); 101var cleanedUpMainContents = CleanupFileContents(string.Format(_mainProject, child1ProjectPath));
BackEnd\BuildManager_Tests.cs (108)
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(@" 1526string contents = CleanupFileContents(@" 1581string contents = CleanupFileContents(@" 1620string contents = CleanupFileContents(@" 1658string contents = CleanupFileContents(@" 1696string contents = CleanupFileContents(@" 1733string contents = CleanupFileContents(@$" 1766string contents = CleanupFileContents(@" 1795string contents = CleanupFileContents(@" 1830string contents = CleanupFileContents(@" 1868string contents = CleanupFileContents(@" 1891string contents = CleanupFileContents(@" 1911string contents = CleanupFileContents(@" 1937string contents = CleanupFileContents(@" 1969string contents = CleanupFileContents(@" 2010string contents1 = CleanupFileContents($@" 2022string contents2 = CleanupFileContents(@" 2079string contents1 = CleanupFileContents(@" 2086string contents2 = CleanupFileContents(@" 2149string contents = CleanupFileContents(@" 2182string contents = CleanupFileContents(@" 2210string contents = CleanupFileContents(@" 2240string contents = CleanupFileContents(@" 2301string contents = CleanupFileContents(@" 2407File.WriteAllText(projA, CleanupFileContents(contentsA)); 2408File.WriteAllText(projB, CleanupFileContents(contentsB)); 2468File.WriteAllText(projA, CleanupFileContents(contentsA)); 2469File.WriteAllText(projB, CleanupFileContents(contentsB)); 2526File.WriteAllText(projA, CleanupFileContents(contentsA)); 2527File.WriteAllText(projB, CleanupFileContents(contentsB)); 2575File.WriteAllText(projA, CleanupFileContents(contentsA)); 2576File.WriteAllText(projB, CleanupFileContents(contentsB)); 2731File.WriteAllText(projA, CleanupFileContents(contentsA)); 2732File.WriteAllText(projB, CleanupFileContents(contentsB)); 2733File.WriteAllText(projC, CleanupFileContents(contentsC)); 2828File.WriteAllText(projA, CleanupFileContents(contentsA)); 2829File.WriteAllText(projB, CleanupFileContents(contentsB)); 2830File.WriteAllText(projC, CleanupFileContents(contentsC)); 2928File.WriteAllText(projA, CleanupFileContents(contentsA)); 2929File.WriteAllText(projB, CleanupFileContents(contentsB)); 2930File.WriteAllText(projC, CleanupFileContents(contentsC)); 3014File.WriteAllText(projA, CleanupFileContents(contentsA)); 3015File.WriteAllText(projB, CleanupFileContents(contentsB)); 3016File.WriteAllText(projC, CleanupFileContents(contentsC)); 3086File.WriteAllText(projA, CleanupFileContents(contentsA)); 3087File.WriteAllText(projB, CleanupFileContents(contentsB)); 3119File.WriteAllText(projectPath1, CleanupFileContents(projectContent)); 3124File.WriteAllText(projectPath2, CleanupFileContents(projectContent)); 3187File.WriteAllText(projectPath1, CleanupFileContents(projectContent1)); 3202File.WriteAllText(projectPath2, CleanupFileContents(projectContent2)); 3272File.WriteAllText(projectPath1, CleanupFileContents(projectContent1)); 3287File.WriteAllText(projectPath2, CleanupFileContents(projectContent2)); 3342string contents = CleanupFileContents(@" 3398string contents = CleanupFileContents(@" 3427string contents = CleanupFileContents(@" 3457string contents = CleanupFileContents(@" 3495BuildRequestData data = GetBuildRequestData(CleanupFileContents(@"<Project xmlns='msbuildnamespace' ToolsVersion='msbuilddefaulttoolsversion'><Target Name='test'/></Project>")); 3510BuildRequestData data = GetBuildRequestData(CleanupFileContents(@"<Project xmlns='msbuildnamespace' ToolsVersion='msbuilddefaulttoolsversion'><Target Name='test'/></Project>")); 3524BuildRequestData data = GetBuildRequestData(CleanupFileContents(@"<Project xmlns='msbuildnamespace' ToolsVersion='msbuilddefaulttoolsversion'><Target Name='test'/></Project>")); 3535string contents = CleanupFileContents(@" 3834var cleanedUpP2pContents = CleanupFileContents(p2pProject); 3838var cleanedUpMainContents = CleanupFileContents(string.Format(mainProject, p2pProjectPath)); 3891File.WriteAllText(importPath, CleanupFileContents(importProject)); 3990var cleanedUpChildContents = CleanupFileContents(childProject); 3995var cleanedUpMainContents = CleanupFileContents(string.Format(mainProject, child1ProjectPath, child2ProjectPath)); 4196string contents = CleanupFileContents(@" 4229File.WriteAllText(project1, CleanupFileContents($@" 4240File.WriteAllText(project2, CleanupFileContents(@" 4271File.WriteAllText(project1, CleanupFileContents($@" 4283File.WriteAllText(project2, CleanupFileContents(@" 4288File.WriteAllText(project3, CleanupFileContents(@" 4312File.WriteAllText(project1, CleanupFileContents($@" 4323File.WriteAllText(project2, CleanupFileContents(@" 4355File.WriteAllText(project1, CleanupFileContents($@" 4366File.WriteAllText(project2, CleanupFileContents($@" 4439string projectContents = ObjectModelHelpers.CleanupFileContents(@"<Project> 4527string sharedDepContents = CleanupFileContents(""" 4568string childContents = CleanupFileContents($""" 4582string rootContents = CleanupFileContents($""" 4652string childContent = CleanupFileContents(""" 4666string rootContent = CleanupFileContents($"""
BackEnd\BuildRequestConfiguration_Tests.cs (4)
184using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@"<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace' />")); 262string projectBody = ObjectModelHelpers.CleanupFileContents(@" 319string projectBody = ObjectModelHelpers.CleanupFileContents(@" 425string projectBody = ObjectModelHelpers.CleanupFileContents(@"
BackEnd\BuildRequestEngine_Tests.cs (1)
236string 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)
793var projectFile = env.CreateFile("test.proj", ObjectModelHelpers.CleanupFileContents(projectContent)); 825var projectFile = env.CreateFile(projFileName, ObjectModelHelpers.CleanupFileContents(projectContent)); 872var 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)
708string contents = ObjectModelHelpers.CleanupFileContents(@"
BackEnd\SdkResultOutOfProc_Tests.cs (5)
107File.WriteAllText(projectPath, CleanupFileContents(contents)); 142File.WriteAllText(entryProjectPath, CleanupFileContents(entryProjectContents)); 152File.WriteAllText(projectWithSdkImportPath, CleanupFileContents(projectWithSdkImportContents)); 232File.WriteAllText(Path.Combine(projectFolder, "Sdk1", "Sdk.props"), CleanupFileContents(sdk1propsContents)); 233File.WriteAllText(Path.Combine(projectFolder, "Sdk2", "Sdk.props"), CleanupFileContents(sdk2propsContents));
BackEnd\TargetUpToDateChecker_Tests.cs (11)
46var content = ObjectModelHelpers.CleanupFileContents( 76var content = ObjectModelHelpers.CleanupFileContents( 102var content = ObjectModelHelpers.CleanupFileContents( 129content = 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 (14)
57string projectFileContents = ObjectModelHelpers.CleanupFileContents( 79string projectFileContents = ObjectModelHelpers.CleanupFileContents( 110string projectFileContents = ObjectModelHelpers.CleanupFileContents( 202string projectFileContents = ObjectModelHelpers.CleanupFileContents( 248string projectFileContents = ObjectModelHelpers.CleanupFileContents( 305string projectFileContents = ObjectModelHelpers.CleanupFileContents(@" 369string projectFileContents = ObjectModelHelpers.CleanupFileContents(@" 425string projectFileContents = ObjectModelHelpers.CleanupFileContents($@" 455string projectFileContents = ObjectModelHelpers.CleanupFileContents(@" 481string projectFileContents = ObjectModelHelpers.CleanupFileContents(@" 506string projectFileContents = ObjectModelHelpers.CleanupFileContents(@" 537string projectFileContents = ObjectModelHelpers.CleanupFileContents(@" 937File.WriteAllText(projectAPath, ObjectModelHelpers.CleanupFileContents(projectAContents)); 938File.WriteAllText(projectBPath, ObjectModelHelpers.CleanupFileContents(projectBContents));
BackEnd\TaskExecutionHost_Tests.cs (1)
1501string projectFileContents = ObjectModelHelpers.CleanupFileContents(@"
BackEnd\TaskRegistry_Tests.cs (1)
614var 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)
243string genericProj = ObjectModelHelpers.CleanupFileContents(@"
Construction\SolutionProjectGenerator_Tests.cs (2)
576string classLibraryContentsToolsV4 = ObjectModelHelpers.CleanupFileContents( 585string 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)
27return 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(@" 3867string content = ObjectModelHelpers.CleanupFileContents(@" 3922string content = ObjectModelHelpers.CleanupFileContents(@" 3974string content = ObjectModelHelpers.CleanupFileContents(@" 4026string content = ObjectModelHelpers.CleanupFileContents(@" 4084string content = ObjectModelHelpers.CleanupFileContents(@" 4142string content = ObjectModelHelpers.CleanupFileContents(@" 4203string content = ObjectModelHelpers.CleanupFileContents(@" 4255string content = ObjectModelHelpers.CleanupFileContents(@" 4302string content = ObjectModelHelpers.CleanupFileContents(@" 4377string projectContents = ObjectModelHelpers.CleanupFileContents( 4527string projectContents = ObjectModelHelpers.CleanupFileContents(@" 4534string importContents = ObjectModelHelpers.CleanupFileContents(@" 4592string content = ObjectModelHelpers.CleanupFileContents($@" 4700string content = ObjectModelHelpers.CleanupFileContents(@" 4999string projectContents = ObjectModelHelpers.CleanupFileContents(@" 5017string testTargets = ObjectModelHelpers.CleanupFileContents(@" 5065string 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)
265var content = CleanupFileContents(projectContent);
Instance\HostServices_Tests.cs (2)
476string contents = ObjectModelHelpers.CleanupFileContents(@" 495string contents = ObjectModelHelpers.CleanupFileContents(@"
Instance\ProjectInstance_Internal_Tests.cs (1)
688using ProjectRootElementFromString projectRootElementFromString = new(ObjectModelHelpers.CleanupFileContents(projectContents));
Instance\TaskItem_Tests.cs (3)
243string content = ObjectModelHelpers.CleanupFileContents(@" 296string content = ObjectModelHelpers.CleanupFileContents(@" 351string content = ObjectModelHelpers.CleanupFileContents(@"
InvalidProjectFileException_Tests.cs (2)
33File.WriteAllText(file, ObjectModelHelpers.CleanupFileContents(@" 65File.WriteAllText(file, ObjectModelHelpers.CleanupFileContents(@"
ProjectCache\ProjectCacheTests.cs (1)
1684string content = ObjectModelHelpers.CleanupFileContents(
Utilities_Tests.cs (1)
74TransientTestFile inputFile = env.CreateFile("tempInput.tmp", ObjectModelHelpers.CleanupFileContents(@"
Microsoft.Build.Tasks.UnitTests (6)
MSBuild_Tests.cs (1)
159string 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)
605return CleanupFileContents(aString); 656File.WriteAllText(projectFilePath, CleanupFileContents(fileContents)); 663var cleanedProject = CleanupFileContents(projectContents); 731XmlReader.Create(new StringReader(CleanupFileContents(xml)), readerSettings), 819newExpectedProjectContents = NormalizeXmlWhitespace(CleanupFileContents(newExpectedProjectContents)); 916File.WriteAllText(fullFilePath, CleanupFileContents(fileContents)); 922File.WriteAllText(fullFilePath, CleanupFileContents(fileContents), encoding); 1099using ProjectRootElementFromString projectRootElementFromString = new(CleanupFileContents(content)); 1356content = ObjectModelHelpers.CleanupFileContents(content); 1384content = ObjectModelHelpers.CleanupFileContents(content); 1410content = ObjectModelHelpers.CleanupFileContents(content); 1470content = ObjectModelHelpers.CleanupFileContents(content); 1580ObjectModelHelpers.CleanupFileContents(newExpectedProjectContents)); 1632File.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)
327File.WriteAllText(Path.Combine(_manifestDirectory, "Platform.xml"), ObjectModelHelpers.CleanupFileContents(contents));
ToolLocationHelper_Tests.cs (2)
3545string tempProjectContents = ObjectModelHelpers.CleanupFileContents(@" 3614string tempProjectContents = ObjectModelHelpers.CleanupFileContents(@"