807 references to CleanupFileContents
Microsoft.Build.CommandLine.UnitTests (25)
XMake_Tests.cs (25)
1093string projectString = ObjectModelHelpers.CleanupFileContents( 1262string content = ObjectModelHelpers.CleanupFileContents("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>"); 1304string content = ObjectModelHelpers.CleanupFileContents("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>"); 1321string content = ObjectModelHelpers.CleanupFileContents("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>"); 1342string content = ObjectModelHelpers.CleanupFileContents("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>"); 1379string content = ObjectModelHelpers.CleanupFileContents("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>"); 1414string content = ObjectModelHelpers.CleanupFileContents("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>"); 1439string content = ObjectModelHelpers.CleanupFileContents("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>"); 1458string content = ObjectModelHelpers.CleanupFileContents("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>"); 1476var content = ObjectModelHelpers.CleanupFileContents("<Project><Target Name='t'><Message Text='Completed'/></Target></Project>"); 1494string content = ObjectModelHelpers.CleanupFileContents("<Project ToolsVersion='msbuilddefaulttoolsversion' xmlns='msbuildnamespace'><Target Name='t'><Warning Text='[A=$(A)]'/></Target></Project>"); 1513var content = ObjectModelHelpers.CleanupFileContents( 1553string contents = ObjectModelHelpers.CleanupFileContents(@" 2281string projectContents = ObjectModelHelpers.CleanupFileContents($@"<Project> 2316string projectContents = ObjectModelHelpers.CleanupFileContents($@"<Project> 2363string projectContents = ObjectModelHelpers.CleanupFileContents($@"<Project> 2409string projectContents = ObjectModelHelpers.CleanupFileContents( 2428string projectContents = ObjectModelHelpers.CleanupFileContents( 2453string projectContents = ObjectModelHelpers.CleanupFileContents($@"<Project> 2498string projectContents = ObjectModelHelpers.CleanupFileContents(@"<Project> 2517var testProject = _env.CreateFile("Importer.proj", ObjectModelHelpers.CleanupFileContents(@" 2557string projectContents = ObjectModelHelpers.CleanupFileContents(@$"<Project> 2597var testSolution = _env.CreateFile("TestSolution.sln", ObjectModelHelpers.CleanupFileContents(solutionFileContents)); 2648string projectContents = ObjectModelHelpers.CleanupFileContents(""" 2702string projectContents = ObjectModelHelpers.CleanupFileContents(@"<Project>
Microsoft.Build.Engine.OM.UnitTests (277)
Construction\ConstructionEditing_Tests.cs (62)
34string expected = ObjectModelHelpers.CleanupFileContents( 62string expected = ObjectModelHelpers.CleanupFileContents( 84string expected = ObjectModelHelpers.CleanupFileContents( 375string expected = ObjectModelHelpers.CleanupFileContents( 398string expected = ObjectModelHelpers.CleanupFileContents( 417string expected = ObjectModelHelpers.CleanupFileContents( 444string expected = ObjectModelHelpers.CleanupFileContents( 473string expected = ObjectModelHelpers.CleanupFileContents( 496string expected = ObjectModelHelpers.CleanupFileContents( 520string expected = ObjectModelHelpers.CleanupFileContents( 548string expected = ObjectModelHelpers.CleanupFileContents( 569string expected = ObjectModelHelpers.CleanupFileContents( 592string expected = ObjectModelHelpers.CleanupFileContents( 613string expected = ObjectModelHelpers.CleanupFileContents( 685string expected = ObjectModelHelpers.CleanupFileContents( 713string expected = ObjectModelHelpers.CleanupFileContents( 752string expected = ObjectModelHelpers.CleanupFileContents( 1095string expected = ObjectModelHelpers.CleanupFileContents( 1124string expected = ObjectModelHelpers.CleanupFileContents( 1179string expected = ObjectModelHelpers.CleanupFileContents(@"<Project ToolsVersion=""msbuilddefaulttoolsversion"" xmlns=""msbuildnamespace"" />"); 1314string expected = ObjectModelHelpers.CleanupFileContents( 1339string expected = ObjectModelHelpers.CleanupFileContents( 1363string expected = ObjectModelHelpers.CleanupFileContents( 1419string expected = ObjectModelHelpers.CleanupFileContents( 1445string expected = ObjectModelHelpers.CleanupFileContents( 1468string expected = ObjectModelHelpers.CleanupFileContents( 1489string expected = ObjectModelHelpers.CleanupFileContents( 1509string expected = ObjectModelHelpers.CleanupFileContents( 1531string expected = ObjectModelHelpers.CleanupFileContents( 1562string expected = ObjectModelHelpers.CleanupFileContents( 1585string expected = ObjectModelHelpers.CleanupFileContents( 1603string expected = ObjectModelHelpers.CleanupFileContents( 1623string expected = ObjectModelHelpers.CleanupFileContents( 1644string expected = ObjectModelHelpers.CleanupFileContents( 1666string expected = ObjectModelHelpers.CleanupFileContents( 1685string expected = ObjectModelHelpers.CleanupFileContents( 1706string expected = ObjectModelHelpers.CleanupFileContents( 1728string expected = ObjectModelHelpers.CleanupFileContents( 1752string expected = ObjectModelHelpers.CleanupFileContents( 1778string expected = ObjectModelHelpers.CleanupFileContents( 1804string expected = ObjectModelHelpers.CleanupFileContents( 1832string expected = ObjectModelHelpers.CleanupFileContents( 1855string expected = ObjectModelHelpers.CleanupFileContents( 1884string expected = ObjectModelHelpers.CleanupFileContents( 1912string expected = ObjectModelHelpers.CleanupFileContents( 1944string expected = ObjectModelHelpers.CleanupFileContents( 1980string expected = ObjectModelHelpers.CleanupFileContents( 2007string expected = ObjectModelHelpers.CleanupFileContents( 2029string expected = ObjectModelHelpers.CleanupFileContents( 2052string expected = ObjectModelHelpers.CleanupFileContents( 2075string expected = ObjectModelHelpers.CleanupFileContents( 2099string expected = ObjectModelHelpers.CleanupFileContents( 2122string expected = ObjectModelHelpers.CleanupFileContents( 2144string expected = ObjectModelHelpers.CleanupFileContents( 2167string expected = ObjectModelHelpers.CleanupFileContents( 2190string expected = ObjectModelHelpers.CleanupFileContents( 2214string expected = ObjectModelHelpers.CleanupFileContents( 2238string expected = ObjectModelHelpers.CleanupFileContents( 2316var projectFileContents = ObjectModelHelpers.CleanupFileContents( 2342var content = ObjectModelHelpers.CleanupFileContents( 3124string expected = ObjectModelHelpers.CleanupFileContents( 3199return ObjectModelHelpers.CleanupFileContents(string.Format(expected, expectedItem));
Construction\ProjectFormatting_Tests.cs (28)
51string content = ObjectModelHelpers.CleanupFileContents(@" 60string reformattedContent = ObjectModelHelpers.CleanupFileContents(@" 78string content = ObjectModelHelpers.CleanupFileContents(@" 87string reformattedContent = ObjectModelHelpers.CleanupFileContents(@" 103string content = ObjectModelHelpers.CleanupFileContents(@" 122string expected = ObjectModelHelpers.CleanupFileContents(@"<?xml version=""1.0"" encoding=""utf-16""?> 139string content = ObjectModelHelpers.CleanupFileContents(@" 158string expected = ObjectModelHelpers.CleanupFileContents(@"<?xml version=""1.0"" encoding=""utf-16""?> 175string content = ObjectModelHelpers.CleanupFileContents(@" 193string expected = ObjectModelHelpers.CleanupFileContents(@"<?xml version=""1.0"" encoding=""utf-16""?> 209string content = ObjectModelHelpers.CleanupFileContents(@"<?xml version=""1.0"" encoding=""utf-8""?> 225string expected = ObjectModelHelpers.CleanupFileContents(@"<?xml version=""1.0"" encoding=""utf-8""?> 240string content = ObjectModelHelpers.CleanupFileContents(@" 254string expected = ObjectModelHelpers.CleanupFileContents(@"<?xml version=""1.0"" encoding=""utf-16""?> 269string content = ObjectModelHelpers.CleanupFileContents(@" 292string expected = ObjectModelHelpers.CleanupFileContents(@"<?xml version=""1.0"" encoding=""utf-16""?> 308string content = ObjectModelHelpers.CleanupFileContents(@" 331string expected = ObjectModelHelpers.CleanupFileContents(@"<?xml version=""1.0"" encoding=""utf-16""?> 350string content = ObjectModelHelpers.CleanupFileContents(@" 497string content = ObjectModelHelpers.CleanupFileContents(@" 512string content = ObjectModelHelpers.CleanupFileContents(@" 526string expected = ObjectModelHelpers.CleanupFileContents(@"<?xml version=""1.0"" encoding=""utf-8""?> 552string expected = ObjectModelHelpers.CleanupFileContents(@"<Project> 575string expected = ObjectModelHelpers.CleanupFileContents(@"<Project> 596string expected = ObjectModelHelpers.CleanupFileContents(@"<?xml version=`1.0` encoding=`utf-16`?> 619string expected = ObjectModelHelpers.CleanupFileContents(@"<?xml version=""1.0"" encoding=""utf-8""?> 643string expected = ObjectModelHelpers.CleanupFileContents(@"<Project> 685content = 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)
35string content = ObjectModelHelpers.CleanupFileContents(@" 54string content = ObjectModelHelpers.CleanupFileContents(@" 118string expected = ObjectModelHelpers.CleanupFileContents(
Construction\ProjectRootElement_Tests.cs (21)
581string expected = ObjectModelHelpers.CleanupFileContents( 610string expected = ObjectModelHelpers.CleanupFileContents( 707using ProjectRootElementFromString projectRootElementFromStringUTF16 = new(ObjectModelHelpers.CleanupFileContents(@"<?xml version=""1.0"" encoding=""utf-16""?> 713using ProjectRootElementFromString projectRootElementFromStringUTF8 = new(ObjectModelHelpers.CleanupFileContents(@"<?xml version=""1.0"" encoding=""utf-8""?> 719using ProjectRootElementFromString projectRootElementFromStringASCII = new(ObjectModelHelpers.CleanupFileContents(@"<?xml version=""1.0"" encoding=""us-ascii""?> 758using ProjectRootElementFromString projectRootElementFromString = new(ObjectModelHelpers.CleanupFileContents(@" 788string content = ObjectModelHelpers.CleanupFileContents( 846string content = ObjectModelHelpers.CleanupFileContents( 1273using ProjectRootElementFromString projectRootElementFromString = new(ObjectModelHelpers.CleanupFileContents(project)); 1296ObjectModelHelpers.CleanupFileContents(project), 1345using var xmlReader = XmlReader.Create(new StringReader(ObjectModelHelpers.CleanupFileContents(SimpleProject))); 1538var initialProjectContents = ObjectModelHelpers.CleanupFileContents( 1553var changedProjectContents1 = ObjectModelHelpers.CleanupFileContents( 1570var changedProjectContents2 = ObjectModelHelpers.CleanupFileContents( 1745File.WriteAllText(initialLocation, ObjectModelHelpers.CleanupFileContents(SimpleProject)); 1755using var xmlReader = XmlReader.Create(new StringReader(ObjectModelHelpers.CleanupFileContents(ComplexProject))); 1761File.WriteAllText(reloadLocation, ObjectModelHelpers.CleanupFileContents(ComplexProject)); 1846XmlReader.Create(new StringReader(ObjectModelHelpers.CleanupFileContents(c))), 1868act(projectElement, ObjectModelHelpers.CleanupFileContents(changedContents)); 1968writer.Write(ObjectModelHelpers.CleanupFileContents(EmptyProject)); 1977string 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)
154string expected = ObjectModelHelpers.CleanupFileContents( 181string expected = ObjectModelHelpers.CleanupFileContents( 211string expected = ObjectModelHelpers.CleanupFileContents( 248string expected = ObjectModelHelpers.CleanupFileContents( 351string expected = ObjectModelHelpers.CleanupFileContents( 375string expected = ObjectModelHelpers.CleanupFileContents( 400string expected = ObjectModelHelpers.CleanupFileContents( 426string expected = ObjectModelHelpers.CleanupFileContents( 452string expected = ObjectModelHelpers.CleanupFileContents( 476string expected = ObjectModelHelpers.CleanupFileContents( 501string expected = ObjectModelHelpers.CleanupFileContents( 533string expected = ObjectModelHelpers.CleanupFileContents( 563string expected = ObjectModelHelpers.CleanupFileContents( 592string expected = ObjectModelHelpers.CleanupFileContents( 620string expected = ObjectModelHelpers.CleanupFileContents( 647string expected = ObjectModelHelpers.CleanupFileContents( 680ObjectModelHelpers.CleanupFileContents( 710var content = ObjectModelHelpers.CleanupFileContents( 724string expected = ObjectModelHelpers.CleanupFileContents( 749var content = ObjectModelHelpers.CleanupFileContents( 765string expected = ObjectModelHelpers.CleanupFileContents( 801ObjectModelHelpers.CleanupFileContents( 836string expected = ObjectModelHelpers.CleanupFileContents( 864string expected = ObjectModelHelpers.CleanupFileContents( 989var content = ObjectModelHelpers.CleanupFileContents( 1005string expected = ObjectModelHelpers.CleanupFileContents( 1037string expected = ObjectModelHelpers.CleanupFileContents( 1066string expected = ObjectModelHelpers.CleanupFileContents( 1106ObjectModelHelpers.CleanupFileContents( 1179string expected = ObjectModelHelpers.CleanupFileContents( 1223string expected = ObjectModelHelpers.CleanupFileContents( 1247expected = ObjectModelHelpers.CleanupFileContents( 1272string expected = ObjectModelHelpers.CleanupFileContents( 1308string expected = ObjectModelHelpers.CleanupFileContents(@"<Project ToolsVersion=""msbuilddefaulttoolsversion"" xmlns=""msbuildnamespace"" />"); 1324var content = ObjectModelHelpers.CleanupFileContents( 1339string expected = ObjectModelHelpers.CleanupFileContents( 1367string expected = ObjectModelHelpers.CleanupFileContents( 1402ObjectModelHelpers.CleanupFileContents( 1427var content = ObjectModelHelpers.CleanupFileContents( 1477string expected = ObjectModelHelpers.CleanupFileContents( 1502string expected = ObjectModelHelpers.CleanupFileContents( 1826string expected = ObjectModelHelpers.CleanupFileContents(@"<Project ToolsVersion=""msbuilddefaulttoolsversion"" xmlns=""msbuildnamespace"" />"); 1849string expected = ObjectModelHelpers.CleanupFileContents( 1871string expected = ObjectModelHelpers.CleanupFileContents( 1899string expected = ObjectModelHelpers.CleanupFileContents( 1929string expected = ObjectModelHelpers.CleanupFileContents( 1976string expected = ObjectModelHelpers.CleanupFileContents( 1998var content = ObjectModelHelpers.CleanupFileContents( 2018string expected = ObjectModelHelpers.CleanupFileContents( 2053string expected = ObjectModelHelpers.CleanupFileContents( 2078string expected = ObjectModelHelpers.CleanupFileContents( 2105string expected = ObjectModelHelpers.CleanupFileContents( 2135string expected = ObjectModelHelpers.CleanupFileContents( 2172string expected = ObjectModelHelpers.CleanupFileContents( 2272string expected = ObjectModelHelpers.CleanupFileContents( 2296string expected = ObjectModelHelpers.CleanupFileContents( 2321string expected = ObjectModelHelpers.CleanupFileContents( 2347string expected = ObjectModelHelpers.CleanupFileContents( 2373string expected = ObjectModelHelpers.CleanupFileContents( 2397string expected = ObjectModelHelpers.CleanupFileContents( 2422string expected = ObjectModelHelpers.CleanupFileContents( 2450string expected = ObjectModelHelpers.CleanupFileContents( 2480string expected = ObjectModelHelpers.CleanupFileContents( 2509string expected = ObjectModelHelpers.CleanupFileContents( 2537string expected = ObjectModelHelpers.CleanupFileContents( 2564string expected = ObjectModelHelpers.CleanupFileContents( 2581projectContents = 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)
936content = ObjectModelHelpers.CleanupFileContents(content);
Definition\ProjectItemDefinition_Tests.cs (20)
38string expected = ObjectModelHelpers.CleanupFileContents( 169ObjectModelHelpers.CleanupFileContents( 199ObjectModelHelpers.CleanupFileContents( 233ObjectModelHelpers.CleanupFileContents( 259ObjectModelHelpers.CleanupFileContents( 286ObjectModelHelpers.CleanupFileContents( 314ObjectModelHelpers.CleanupFileContents( 345ObjectModelHelpers.CleanupFileContents( 375ObjectModelHelpers.CleanupFileContents( 403ObjectModelHelpers.CleanupFileContents( 432ObjectModelHelpers.CleanupFileContents( 476ObjectModelHelpers.CleanupFileContents( 498ObjectModelHelpers.CleanupFileContents( 520ObjectModelHelpers.CleanupFileContents( 542ObjectModelHelpers.CleanupFileContents( 564ObjectModelHelpers.CleanupFileContents( 586ObjectModelHelpers.CleanupFileContents( 608ObjectModelHelpers.CleanupFileContents( 630ObjectModelHelpers.CleanupFileContents( 649ObjectModelHelpers.CleanupFileContents(
Definition\ProjectMetadata_Tests.cs (13)
42string content = ObjectModelHelpers.CleanupFileContents(@" 68string expected = ObjectModelHelpers.CleanupFileContents(@" 146string content = ObjectModelHelpers.CleanupFileContents(@" 175string content = ObjectModelHelpers.CleanupFileContents(@" 202string content = ObjectModelHelpers.CleanupFileContents(@" 228string content = ObjectModelHelpers.CleanupFileContents(@" 256string content = ObjectModelHelpers.CleanupFileContents(@" 288string content = ObjectModelHelpers.CleanupFileContents(@" 321string content = ObjectModelHelpers.CleanupFileContents(@" 351string content = ObjectModelHelpers.CleanupFileContents(@" 384string content = ObjectModelHelpers.CleanupFileContents(@" 415string content = ObjectModelHelpers.CleanupFileContents(@" 484string projectString = ObjectModelHelpers.CleanupFileContents(@"<Project DefaultTargets=""Build"" ToolsVersion=""msbuilddefaulttoolsversion"" xmlns=""msbuildnamespace"">
Instance\ProjectInstance_Tests.cs (2)
629File.WriteAllText(projectA, ObjectModelHelpers.CleanupFileContents(contentsA)); 630File.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)
172content = ObjectModelHelpers.CleanupFileContents(content);
TransientIO.cs (1)
106content = ObjectModelHelpers.CleanupFileContents(content);
Microsoft.Build.Engine.UnitTests (474)
BackEnd\BatchingEngine_Tests.cs (1)
487using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(content));
BackEnd\BuildManager_Logging_Tests.cs (2)
110var cleanedUpChildContents = CleanupFileContents(_childProjectWithCustomBuildEvent); 114var cleanedUpMainContents = CleanupFileContents(string.Format(_mainProject, child1ProjectPath));
BackEnd\BuildManager_Tests.cs (100)
122string contents = CleanupFileContents(@" 239string contents = CleanupFileContents(@" 442Project project = CreateProject(CleanupFileContents(contents), MSBuildDefaultToolsVersion, _projectCollection, false); 492Project project = CreateProject(CleanupFileContents(contents), MSBuildDefaultToolsVersion, 554string contents = CleanupFileContents(@" 594string contents = CleanupFileContents(@" 634string contents = CleanupFileContents(@" 682string contents = CleanupFileContents(@" 743string contents = CleanupFileContents($@" 752string projectContents = CleanupFileContents(@" 817string contents = CleanupFileContents(@" 861string contents = CleanupFileContents(@" 916string contents = CleanupFileContents(@" 950string contents = CleanupFileContents(@" 966string contents = CleanupFileContents(@" 1032string contents = CleanupFileContents(@" 1066string contents = CleanupFileContents(@" 1148string contents = CleanupFileContents(@" 1265string contents = CleanupFileContents(@" 1290string contents = CleanupFileContents(@" 1321string contents = CleanupFileContents(@" 1329string contents2 = CleanupFileContents(@" 1357string contents = CleanupFileContents(@" 1366string contents2 = CleanupFileContents(@" 1399string contents = CleanupFileContents(@" 1433string contents = CleanupFileContents(@" 1481string contents = CleanupFileContents(@" 1501string contents = CleanupFileContents(@" 1525string contents = CleanupFileContents(@" 1580string contents = CleanupFileContents(@" 1619string contents = CleanupFileContents(@" 1657string contents = CleanupFileContents(@" 1695string contents = CleanupFileContents(@" 1732string contents = CleanupFileContents(@$" 1765string contents = CleanupFileContents(@" 1794string 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(@" 3492string contents = CleanupFileContents(@" 3791var cleanedUpP2pContents = CleanupFileContents(p2pProject); 3795var cleanedUpMainContents = CleanupFileContents(string.Format(mainProject, p2pProjectPath)); 3848File.WriteAllText(importPath, CleanupFileContents(importProject)); 3947var cleanedUpChildContents = CleanupFileContents(childProject); 3952var cleanedUpMainContents = CleanupFileContents(string.Format(mainProject, child1ProjectPath, child2ProjectPath)); 4153string contents = CleanupFileContents(@" 4186File.WriteAllText(project1, CleanupFileContents($@" 4197File.WriteAllText(project2, CleanupFileContents(@" 4228File.WriteAllText(project1, CleanupFileContents($@" 4240File.WriteAllText(project2, CleanupFileContents(@" 4245File.WriteAllText(project3, CleanupFileContents(@" 4269File.WriteAllText(project1, CleanupFileContents($@" 4280File.WriteAllText(project2, CleanupFileContents(@" 4312File.WriteAllText(project1, CleanupFileContents($@" 4323File.WriteAllText(project2, CleanupFileContents($@" 4395string 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)
240string content = ObjectModelHelpers.CleanupFileContents(@"
BackEnd\ConfigurationMetadata_Tests.cs (1)
146string projectBody = ObjectModelHelpers.CleanupFileContents(@"
BackEnd\IntrinsicTask_Tests.cs (135)
31string content = ObjectModelHelpers.CleanupFileContents(@" 52string content = ObjectModelHelpers.CleanupFileContents(@" 71string content = ObjectModelHelpers.CleanupFileContents(@" 89string content = ObjectModelHelpers.CleanupFileContents(@" 107string content = ObjectModelHelpers.CleanupFileContents( 123string content = ObjectModelHelpers.CleanupFileContents( 145string content = ObjectModelHelpers.CleanupFileContents( 162string content = ObjectModelHelpers.CleanupFileContents( 179var content = ObjectModelHelpers.CleanupFileContents( 196content = ObjectModelHelpers.CleanupFileContents( 216var content = ObjectModelHelpers.CleanupFileContents( 236string content = ObjectModelHelpers.CleanupFileContents(@" 280string content = ObjectModelHelpers.CleanupFileContents(@" 300string content = ObjectModelHelpers.CleanupFileContents(@" 320string content = ObjectModelHelpers.CleanupFileContents(""" 341string content = ObjectModelHelpers.CleanupFileContents(@" 361string content = ObjectModelHelpers.CleanupFileContents(@" 382string content = ObjectModelHelpers.CleanupFileContents(@" 406string content = ObjectModelHelpers.CleanupFileContents(@" 431string content = ObjectModelHelpers.CleanupFileContents(@" 453string content = ObjectModelHelpers.CleanupFileContents(@" 480string content = ObjectModelHelpers.CleanupFileContents(@" 506string content = ObjectModelHelpers.CleanupFileContents(@" 532string content = ObjectModelHelpers.CleanupFileContents(@" 561string content = ObjectModelHelpers.CleanupFileContents(@" 583string content = ObjectModelHelpers.CleanupFileContents(@" 609string content = ObjectModelHelpers.CleanupFileContents(@" 635string content = ObjectModelHelpers.CleanupFileContents(@" 666string content = ObjectModelHelpers.CleanupFileContents(@" 690string content = ObjectModelHelpers.CleanupFileContents(@" 709string content = ObjectModelHelpers.CleanupFileContents(@" 736string content = ObjectModelHelpers.CleanupFileContents(@" 760string content = ObjectModelHelpers.CleanupFileContents(@" 776string content = ObjectModelHelpers.CleanupFileContents(@" 794string content = ObjectModelHelpers.CleanupFileContents(@" 809string content = ObjectModelHelpers.CleanupFileContents(@" 831string content = ObjectModelHelpers.CleanupFileContents(@" 854string content = ObjectModelHelpers.CleanupFileContents(@" 876string content = ObjectModelHelpers.CleanupFileContents(@" 903var content = ObjectModelHelpers.CleanupFileContents( 920content = ObjectModelHelpers.CleanupFileContents( 941var content = ObjectModelHelpers.CleanupFileContents( 965string content = ObjectModelHelpers.CleanupFileContents(@" 988string content = ObjectModelHelpers.CleanupFileContents(@" 1011string content = ObjectModelHelpers.CleanupFileContents(@" 1044string content = ObjectModelHelpers.CleanupFileContents( 1077var content = ObjectModelHelpers.CleanupFileContents( 1105string content = ObjectModelHelpers.CleanupFileContents( 1138string content = ObjectModelHelpers.CleanupFileContents( 1161var content = ObjectModelHelpers.CleanupFileContents( 1192string content = ObjectModelHelpers.CleanupFileContents( 1211using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 1234using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 1260using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 1298using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 1328using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 1348using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 1370using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 1390using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 1412using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 1437using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 1469using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 1511using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 1558using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 1606string content = ObjectModelHelpers.CleanupFileContents( 1620string content = ObjectModelHelpers.CleanupFileContents( 1637string content = ObjectModelHelpers.CleanupFileContents( 1660using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 1699string content = ObjectModelHelpers.CleanupFileContents( 1718string content = ObjectModelHelpers.CleanupFileContents( 1737string content = ObjectModelHelpers.CleanupFileContents( 1756string content = ObjectModelHelpers.CleanupFileContents( 1790string content = ObjectModelHelpers.CleanupFileContents( 1827string content = ObjectModelHelpers.CleanupFileContents( 1885string content = ObjectModelHelpers.CleanupFileContents( 1919string content = ObjectModelHelpers.CleanupFileContents( 1955string content = ObjectModelHelpers.CleanupFileContents( 1995string content = ObjectModelHelpers.CleanupFileContents( 2033string content = ObjectModelHelpers.CleanupFileContents( 2063string content = ObjectModelHelpers.CleanupFileContents( 2095string content = ObjectModelHelpers.CleanupFileContents( 2135string content = ObjectModelHelpers.CleanupFileContents( 2176string content = ObjectModelHelpers.CleanupFileContents(@" 2215string content = ObjectModelHelpers.CleanupFileContents(@" 2255string content = ObjectModelHelpers.CleanupFileContents(@" 2284using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 2317using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 2350using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 2388using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 2428using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 2463using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 2493using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 2531string content = ObjectModelHelpers.CleanupFileContents(@" 2553using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 2578using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 2609using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 2651using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 2696using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 2740using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 2785using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 2823string content = ObjectModelHelpers.CleanupFileContents( 2840string content = ObjectModelHelpers.CleanupFileContents( 2864using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 2896string content = ObjectModelHelpers.CleanupFileContents( 2922using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 2946string content = ObjectModelHelpers.CleanupFileContents( 2976string content = ObjectModelHelpers.CleanupFileContents( 3008string content = ObjectModelHelpers.CleanupFileContents( 3025string content = ObjectModelHelpers.CleanupFileContents( 3056string content = ObjectModelHelpers.CleanupFileContents( 3100string content = ObjectModelHelpers.CleanupFileContents(@" 3128using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 3179using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 3220using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 3275using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 3302using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 3350using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 3386File.WriteAllText(importedFile, ObjectModelHelpers.CleanupFileContents(@" 3393using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 3425File.WriteAllText(importedFile, ObjectModelHelpers.CleanupFileContents(@" 3432using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 3463using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 3495using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 3520using ProjectRootElementFromString projectRootElementFromString = new(ObjectModelHelpers.CleanupFileContents(@" 3559using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 3594using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 3623using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 3654using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 3681using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 3710using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 3739using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 3768using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 3805using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 3834using ProjectFromString projectFromString = new(ObjectModelHelpers.CleanupFileContents(@" 3864using 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)
704string 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)
48var content = ObjectModelHelpers.CleanupFileContents( 78var content = ObjectModelHelpers.CleanupFileContents( 104var content = ObjectModelHelpers.CleanupFileContents( 131content = ObjectModelHelpers.CleanupFileContents( 303string projectText = ObjectModelHelpers.CleanupFileContents(@" 332string projectText = ObjectModelHelpers.CleanupFileContents(@" 361string projectText = ObjectModelHelpers.CleanupFileContents(@" 391string projectText = ObjectModelHelpers.CleanupFileContents(@" 426string projectText = ObjectModelHelpers.CleanupFileContents(@" 469var content = ObjectModelHelpers.CleanupFileContents(@" 591string unformattedProjectXml = ObjectModelHelpers.CleanupFileContents(
BackEnd\TaskBuilder_Tests.cs (15)
71string projectFileContents = ObjectModelHelpers.CleanupFileContents( 93string projectFileContents = ObjectModelHelpers.CleanupFileContents( 124string projectFileContents = ObjectModelHelpers.CleanupFileContents( 216string projectFileContents = ObjectModelHelpers.CleanupFileContents( 262string projectFileContents = ObjectModelHelpers.CleanupFileContents( 319string projectFileContents = ObjectModelHelpers.CleanupFileContents(@" 383string projectFileContents = ObjectModelHelpers.CleanupFileContents(@" 439string projectFileContents = ObjectModelHelpers.CleanupFileContents($@" 469string projectFileContents = ObjectModelHelpers.CleanupFileContents(@" 495string projectFileContents = ObjectModelHelpers.CleanupFileContents(@" 520string projectFileContents = ObjectModelHelpers.CleanupFileContents(@" 551string projectFileContents = ObjectModelHelpers.CleanupFileContents(@" 1007File.WriteAllText(projectAPath, ObjectModelHelpers.CleanupFileContents(projectAContents)); 1008File.WriteAllText(projectBPath, ObjectModelHelpers.CleanupFileContents(projectBContents)); 1183string projectFileContents = ObjectModelHelpers.CleanupFileContents(@"
BackEnd\TaskExecutionHost_Tests.cs (1)
1505string 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)
532string classLibraryContentsToolsV4 = ObjectModelHelpers.CleanupFileContents( 541string classLibraryContentsToolsV12 = ObjectModelHelpers.CleanupFileContents(
Definition\ProjectItem_Tests.cs (1)
50ObjectModelHelpers.CleanupFileContents(@"
Definition\ToolsetConfigurationReader_Tests.cs (18)
38ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.CleanupFileContents(@" 62ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.CleanupFileContents(@" 98ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.CleanupFileContents(@" 124ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.CleanupFileContents(@" 152ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.CleanupFileContents(@" 204ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.CleanupFileContents(@" 232ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.CleanupFileContents(@" 260ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.CleanupFileContents(@" 288ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.CleanupFileContents(@" 327ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.CleanupFileContents(@" 352ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.CleanupFileContents(@" 377ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.CleanupFileContents(@" 403ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.CleanupFileContents(@" 431ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.CleanupFileContents(@" 466ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.CleanupFileContents(@" 506ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.CleanupFileContents(@" 603ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.CleanupFileContents(@" 638ToolsetConfigurationReaderTestHelper.WriteConfigFile(ObjectModelHelpers.CleanupFileContents(@"
Definition\ToolsetConfigurationReaderTestHelper.cs (1)
26return WriteConfigFile(ObjectModelHelpers.CleanupFileContents(content), null);
Definition\ToolsVersion_Tests.cs (8)
320mockLogger.AssertLogContains(ObjectModelHelpers.CleanupFileContents("ToolsVersion=\"msbuilddefaulttoolsversion\"")); 357mockLogger.AssertLogContains(ObjectModelHelpers.CleanupFileContents("ToolsVersion=\"msbuilddefaulttoolsversion\"")); 392mockLogger.AssertLogContains(ObjectModelHelpers.CleanupFileContents("ToolsVersion=\"msbuilddefaulttoolsversion\"")); 454mockLogger.AssertLogContains(ObjectModelHelpers.CleanupFileContents("ToolsVersion=\"msbuilddefaulttoolsversion\"")); 600mockLogger.AssertLogContains(ObjectModelHelpers.CleanupFileContents("ToolsVersion=\"msbuilddefaulttoolsversion\"")); 642mockLogger.AssertLogContains(ObjectModelHelpers.CleanupFileContents("ToolsVersion=\"msbuilddefaulttoolsversion\"")); 798mockLogger.AssertLogContains(ObjectModelHelpers.CleanupFileContents("ToolsVersion=\"msbuilddefaulttoolsversion\"")); 909mockLogger.AssertLogContains(ObjectModelHelpers.CleanupFileContents("ToolsVersion=\"msbuilddefaulttoolsversion\""));
Evaluation\Evaluator_Tests.cs (111)
141string projXml = ObjectModelHelpers.CleanupFileContents(@" 149string fooXml = ObjectModelHelpers.CleanupFileContents(@" 155string barXml = ObjectModelHelpers.CleanupFileContents(@" 312File.WriteAllText(testTargetPath, ObjectModelHelpers.CleanupFileContents(testtargets)); 313File.WriteAllText(subdirProjPath, ObjectModelHelpers.CleanupFileContents(subdirTestProj)); 315File.WriteAllText(targetDirectoryTargetsPath, ObjectModelHelpers.CleanupFileContents(targetDirTargets)); 316File.WriteAllText(targetDirectoryTargetsPath2, ObjectModelHelpers.CleanupFileContents(targetDirTargets2)); 317File.WriteAllText(projectDirectoryTargetsPath, ObjectModelHelpers.CleanupFileContents(projDirTargets)); 318File.WriteAllText(projectDirectoryTargetsPath2, ObjectModelHelpers.CleanupFileContents(projDirTargets2)); 441File.WriteAllText(testTargetPath, ObjectModelHelpers.CleanupFileContents(testtargets)); 442File.WriteAllText(subdirProjPath, ObjectModelHelpers.CleanupFileContents(subdirTestProj)); 444File.WriteAllText(targetDirectoryTargetsPath, ObjectModelHelpers.CleanupFileContents(targetDirTargets)); 445File.WriteAllText(targetDirectoryTargetsPath2, ObjectModelHelpers.CleanupFileContents(targetDirTargets2)); 446File.WriteAllText(projectDirectoryTargetsPath, ObjectModelHelpers.CleanupFileContents(projDirTargets)); 447File.WriteAllText(projectDirectoryTargetsPath2, ObjectModelHelpers.CleanupFileContents(projDirTargets2)); 475string targetA = ObjectModelHelpers.CleanupFileContents(@" 483string targetB = ObjectModelHelpers.CleanupFileContents(@" 491string projectContents = ObjectModelHelpers.CleanupFileContents(@" 535string testtargets = ObjectModelHelpers.CleanupFileContents(@" 578string testtargets = ObjectModelHelpers.CleanupFileContents(@" 624string testtargets = ObjectModelHelpers.CleanupFileContents(@" 667string testtargets = ObjectModelHelpers.CleanupFileContents(@" 712string testtargets = ObjectModelHelpers.CleanupFileContents(@" 757string testtargets = ObjectModelHelpers.CleanupFileContents(@" 812string import = ObjectModelHelpers.CleanupFileContents(@" 824string content = ObjectModelHelpers.CleanupFileContents(@" 877string import = ObjectModelHelpers.CleanupFileContents(@" 885string import2 = ObjectModelHelpers.CleanupFileContents(@" 900string content = ObjectModelHelpers.CleanupFileContents(@" 979string import1 = ObjectModelHelpers.CleanupFileContents(@" 986string import2 = ObjectModelHelpers.CleanupFileContents(@" 999string manifest = ObjectModelHelpers.CleanupFileContents(@" 1041string import1 = ObjectModelHelpers.CleanupFileContents(@" 1048string import2 = ObjectModelHelpers.CleanupFileContents(@" 1061string manifest = ObjectModelHelpers.CleanupFileContents(@" 1131string import1 = ObjectModelHelpers.CleanupFileContents(@" 1139string import2 = ObjectModelHelpers.CleanupFileContents(@" 1193string content = ObjectModelHelpers.CleanupFileContents($@" 1258string content = ObjectModelHelpers.CleanupFileContents($@" 1295string content = ObjectModelHelpers.CleanupFileContents($@" 1418string content = ObjectModelHelpers.CleanupFileContents(@" 1438string content = ObjectModelHelpers.CleanupFileContents(@" 1466string content = ObjectModelHelpers.CleanupFileContents(@" 1493string content = ObjectModelHelpers.CleanupFileContents(@" 1512string content = ObjectModelHelpers.CleanupFileContents(@" 1543string content = ObjectModelHelpers.CleanupFileContents(@" 1567string content = ObjectModelHelpers.CleanupFileContents(@" 1607string content = ObjectModelHelpers.CleanupFileContents(@" 1642string content = ObjectModelHelpers.CleanupFileContents(@" 1671string content = ObjectModelHelpers.CleanupFileContents(@" 1710string content = ObjectModelHelpers.CleanupFileContents(@" 1739string content = ObjectModelHelpers.CleanupFileContents(@" 1763string content = ObjectModelHelpers.CleanupFileContents(@" 1794string content = ObjectModelHelpers.CleanupFileContents(@" 1830string content = ObjectModelHelpers.CleanupFileContents(@" 1865string content = ObjectModelHelpers.CleanupFileContents(@" 1898string content = ObjectModelHelpers.CleanupFileContents(@" 1981string content = ObjectModelHelpers.CleanupFileContents(@" 2068string content = ObjectModelHelpers.CleanupFileContents(@" 2132string content = ObjectModelHelpers.CleanupFileContents(@" 2157string content = ObjectModelHelpers.CleanupFileContents(@" 2192string content = ObjectModelHelpers.CleanupFileContents(@" 2303string content = ObjectModelHelpers.CleanupFileContents(@" 2328string content = ObjectModelHelpers.CleanupFileContents(@" 2351string content = ObjectModelHelpers.CleanupFileContents(@" 2876string content = ObjectModelHelpers.CleanupFileContents(@" 2902string content = ObjectModelHelpers.CleanupFileContents(@" 2927string content = ObjectModelHelpers.CleanupFileContents(@" 2953string content = ObjectModelHelpers.CleanupFileContents(@" 2983string content = ObjectModelHelpers.CleanupFileContents(@" 3013string content = ObjectModelHelpers.CleanupFileContents(@" 3043string content = ObjectModelHelpers.CleanupFileContents(@" 3079string content = ObjectModelHelpers.CleanupFileContents(@" 3125string content = ObjectModelHelpers.CleanupFileContents(@" 3154string content = ObjectModelHelpers.CleanupFileContents(@" 3190string content = ObjectModelHelpers.CleanupFileContents(@" 3225string content = ObjectModelHelpers.CleanupFileContents(@" 3253string content = ObjectModelHelpers.CleanupFileContents(@" 3295string content = ObjectModelHelpers.CleanupFileContents(@" 3332string content = ObjectModelHelpers.CleanupFileContents(@" 3370string projectContents = ObjectModelHelpers.CleanupFileContents(@" 3380string importContents = ObjectModelHelpers.CleanupFileContents(@" 3430string projectContents = ObjectModelHelpers.CleanupFileContents(@" 3443string importContents = ObjectModelHelpers.CleanupFileContents(@" 3491string projectContents = ObjectModelHelpers.CleanupFileContents(@" 3503string importContents = ObjectModelHelpers.CleanupFileContents(@" 3553string projectContents = ObjectModelHelpers.CleanupFileContents(@" 3570string importContents = ObjectModelHelpers.CleanupFileContents(@" 3627string projectContents = ObjectModelHelpers.CleanupFileContents(@" 3643string importContents = ObjectModelHelpers.CleanupFileContents(@" 3700string projectContents = ObjectModelHelpers.CleanupFileContents(@" 3711string project2Contents = ObjectModelHelpers.CleanupFileContents(@" 3762string projectContents = ObjectModelHelpers.CleanupFileContents(@" 3773string project2Contents = ObjectModelHelpers.CleanupFileContents(@" 3833string content = ObjectModelHelpers.CleanupFileContents(@" 3899string content = ObjectModelHelpers.CleanupFileContents(@" 3951string content = ObjectModelHelpers.CleanupFileContents(@" 4003string content = ObjectModelHelpers.CleanupFileContents(@" 4061string content = ObjectModelHelpers.CleanupFileContents(@" 4119string content = ObjectModelHelpers.CleanupFileContents(@" 4180string content = ObjectModelHelpers.CleanupFileContents(@" 4232string content = ObjectModelHelpers.CleanupFileContents(@" 4279string content = ObjectModelHelpers.CleanupFileContents(@" 4354string projectContents = ObjectModelHelpers.CleanupFileContents( 4504string projectContents = ObjectModelHelpers.CleanupFileContents(@" 4511string importContents = ObjectModelHelpers.CleanupFileContents(@" 4569string content = ObjectModelHelpers.CleanupFileContents($@" 4677string content = ObjectModelHelpers.CleanupFileContents(@" 4976string projectContents = ObjectModelHelpers.CleanupFileContents(@" 4994string testTargets = ObjectModelHelpers.CleanupFileContents(@" 5042string 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( 997string expected = ObjectModelHelpers.CleanupFileContents( 1115string expected = ObjectModelHelpers.CleanupFileContents(
EvaluationProfiler_Tests.cs (1)
267var content = CleanupFileContents(projectContent);
Instance\HostServices_Tests.cs (2)
477string contents = ObjectModelHelpers.CleanupFileContents(@" 496string contents = ObjectModelHelpers.CleanupFileContents(@"
Instance\ProjectInstance_Internal_Tests.cs (1)
690using ProjectRootElementFromString projectRootElementFromString = new(ObjectModelHelpers.CleanupFileContents(projectContents));
Instance\TaskItem_Tests.cs (3)
243string content = ObjectModelHelpers.CleanupFileContents(@" 296string content = ObjectModelHelpers.CleanupFileContents(@" 350string content = ObjectModelHelpers.CleanupFileContents(@"
InvalidProjectFileException_Tests.cs (2)
35File.WriteAllText(file, ObjectModelHelpers.CleanupFileContents(@" 67File.WriteAllText(file, 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)
3742string tempProjectContents = ObjectModelHelpers.CleanupFileContents( 3885string tempProjectContents = ObjectModelHelpers.CleanupFileContents( 4010string tempProjectContents = ObjectModelHelpers.CleanupFileContents( 4117string tempProjectContents = ObjectModelHelpers.CleanupFileContents( 4257string tempProjectContents = ObjectModelHelpers.CleanupFileContents(@"
Microsoft.Build.UnitTests.Shared (15)
EngineTestEnvironment.cs (1)
130File.WriteAllText(ProjectFile, ObjectModelHelpers.CleanupFileContents(projectContents));
ObjectModelHelpers.cs (14)
607return CleanupFileContents(aString); 658File.WriteAllText(projectFilePath, CleanupFileContents(fileContents)); 665var cleanedProject = CleanupFileContents(projectContents); 733XmlReader.Create(new StringReader(CleanupFileContents(xml)), readerSettings), 821newExpectedProjectContents = NormalizeXmlWhitespace(CleanupFileContents(newExpectedProjectContents)); 918File.WriteAllText(fullFilePath, CleanupFileContents(fileContents)); 924File.WriteAllText(fullFilePath, CleanupFileContents(fileContents), encoding); 1101using ProjectRootElementFromString projectRootElementFromString = new(CleanupFileContents(content)); 1358content = ObjectModelHelpers.CleanupFileContents(content); 1373content = ObjectModelHelpers.CleanupFileContents(content); 1399content = ObjectModelHelpers.CleanupFileContents(content); 1459content = ObjectModelHelpers.CleanupFileContents(content); 1567ObjectModelHelpers.CleanupFileContents(newExpectedProjectContents)); 1619File.WriteAllText(createdProjectFile, ObjectModelHelpers.CleanupFileContents(projectContents));
Microsoft.Build.Utilities.UnitTests (10)
MuxLogger_Tests.cs (7)
45string projectBody = ObjectModelHelpers.CleanupFileContents(@" 81string projectBody = ObjectModelHelpers.CleanupFileContents(@" 140string projectBody = ObjectModelHelpers.CleanupFileContents(@" 182string projectBody1 = ObjectModelHelpers.CleanupFileContents(@" 191string projectBody2 = ObjectModelHelpers.CleanupFileContents(@" 249string projectBody = ObjectModelHelpers.CleanupFileContents(@" 299string projectBody = ObjectModelHelpers.CleanupFileContents(@"
PlatformManifest_Tests.cs (1)
326File.WriteAllText(Path.Combine(_manifestDirectory, "Platform.xml"), ObjectModelHelpers.CleanupFileContents(contents));
ToolLocationHelper_Tests.cs (2)
3552string tempProjectContents = ObjectModelHelpers.CleanupFileContents(@" 3621string tempProjectContents = ObjectModelHelpers.CleanupFileContents(@"