178 references to Create
Microsoft.Build.Engine.OM.UnitTests (115)
Construction\ProjectChooseElement_Tests.cs (9)
37ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 55ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 74ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 98ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 117ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 137ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 157ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 177ProjectRootElement project = ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 253ProjectRootElement.Create(XmlReader.Create(new StringReader(content)));
Construction\ProjectExtensionsElement_Tests.cs (2)
55ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 74ProjectRootElement.Create(XmlReader.Create(new StringReader(content)));
Construction\ProjectImportElement_Tests.cs (4)
48ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 65ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 82ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 144ProjectRootElement project = ProjectRootElement.Create(XmlReader.Create(new StringReader(content)));
Construction\ProjectImportGroupElement_Tests.cs (5)
189ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 209ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 229ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 246ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 356ProjectRootElement project = ProjectRootElement.Create(XmlReader.Create(new StringReader(content)));
Construction\ProjectItemDefinitionElement_Tests.cs (1)
196ProjectRootElement.Create(XmlReader.Create(new StringReader(content)));
Construction\ProjectItemDefinitionGroupElement_Tests.cs (1)
44ProjectRootElement.Create(XmlReader.Create(new StringReader(content)));
Construction\ProjectItemElement_Tests.cs (13)
134ProjectRootElement.Create(XmlReader.Create(new StringReader(project))); 162ProjectRootElement.Create(XmlReader.Create(new StringReader(project))); 190ProjectRootElement.Create(XmlReader.Create(new StringReader(project))); 218ProjectRootElement.Create(XmlReader.Create(new StringReader(project))); 238() => { ProjectRootElement.Create(XmlReader.Create(new StringReader(project))); }); 261() => { ProjectRootElement.Create(XmlReader.Create(new StringReader(project))); }); 303ProjectRootElement.Create(XmlReader.Create(new StringReader(project))); 447ProjectRootElement.Create(XmlReader.Create(new StringReader(project))); 472ProjectRootElement.Create(XmlReader.Create(new StringReader(project))); 497ProjectRootElement.Create(XmlReader.Create(new StringReader(project))); 529ProjectRootElement.Create(XmlReader.Create(new StringReader(project))); 557ProjectRootElement.Create(XmlReader.Create(new StringReader(project))); 585ProjectRootElement.Create(XmlReader.Create(new StringReader(project)));
Construction\ProjectMetadataElement_Tests.cs (8)
61ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 82ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 105ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 127ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 150ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 172ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 198ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 385ProjectRootElement.Create(XmlReader.Create(new StringReader(content)));
Construction\ProjectOnErrorElement_Tests.cs (7)
80ProjectRootElement project = ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 106ProjectRootElement project = ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 129ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 150ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 170ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 190ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 210ProjectRootElement.Create(XmlReader.Create(new StringReader(content)));
Construction\ProjectOutputElement_Tests.cs (7)
69ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 91ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 113ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 135ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 159ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 181ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 203ProjectRootElement.Create(XmlReader.Create(new StringReader(content)));
Construction\ProjectPropertyElement_Tests.cs (5)
72ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 91ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 110ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 129ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 150ProjectRootElement.Create(XmlReader.Create(new StringReader(content)));
Construction\ProjectRootElement_Tests.cs (16)
274ProjectRootElement.Create(XmlReader.Create(new StringReader("XXX"))); 287ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 303ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 320ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 335ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 352ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 406ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 559XmlReader reader = XmlReader.Create(new StringReader("<Project xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\"/>")); 1345using var xmlReader = XmlReader.Create(new StringReader(ObjectModelHelpers.CleanupFileContents(SimpleProject))); 1528XmlReader.Create(new StringReader(c)), 1602using var xmlReader = XmlReader.Create(new StringReader(changedProjectContents1)); 1643XmlReader.Create( 1755using var xmlReader = XmlReader.Create(new StringReader(ObjectModelHelpers.CleanupFileContents(ComplexProject))); 1810XmlReader.Create( 1830XmlReader.Create( 1846XmlReader.Create(new StringReader(ObjectModelHelpers.CleanupFileContents(c))),
Construction\ProjectTargetElement_Tests.cs (2)
174ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 191ProjectRootElement.Create(XmlReader.Create(new StringReader(content)));
Construction\ProjectUsingTaskElement_Tests.cs (14)
45ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 62ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 79ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 96ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 113ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 130ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 147ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 164ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 181ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 358ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 378ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 397ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 445ProjectRootElement project = ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 466ProjectRootElement project = ProjectRootElement.Create(XmlReader.Create(new StringReader(content)));
Construction\UsingTaskBodyElement_Tests.cs (2)
48ProjectRootElement.Create(XmlReader.Create(new StringReader(content))); 68ProjectRootElement.Create(XmlReader.Create(new StringReader(content)));
Construction\UsingTaskParameterElement_Tests.cs (1)
92ProjectRootElement.Create(XmlReader.Create(new StringReader(content)));
Construction\UsingTaskParameterGroup_Tests.cs (1)
129ProjectRootElement.Create(XmlReader.Create(new StringReader(content)));
Definition\Project_Tests.cs (8)
246XmlReader reader = XmlReader.Create(new StringReader(String.Empty)); 259XmlReader reader = XmlReader.Create(new StringReader(String.Empty)); 273XmlReader reader = XmlReader.Create(new StringReader(ProjectRootElement.Create().RawXml)); 292XmlReader reader = XmlReader.Create(new StringReader(String.Empty)); 1532using var xmlReaderChangedContent = XmlReader.Create(new StringReader(changedImportContents)); 1597using (var xmlReaderChangedContents = XmlReader.Create(new StringReader(changedProjectContents))) 2655Project project = new Project(XmlReader.Create(new StringReader(projectOriginalContents))); 2703Project project = new Project(XmlReader.Create(new StringReader(projectOriginalContents)));
Definition\ProjectCollection_Tests.cs (1)
1474XmlReader reader = XmlReader.Create(new StringReader(xml.RawXml));
Definition\ProjectItemDefinition_Tests.cs (8)
485Project project = new Project(XmlReader.Create(new StringReader(content))); 507Project project = new Project(XmlReader.Create(new StringReader(content))); 529Project project = new Project(XmlReader.Create(new StringReader(content))); 551Project project = new Project(XmlReader.Create(new StringReader(content))); 573Project project = new Project(XmlReader.Create(new StringReader(content))); 595Project project = new Project(XmlReader.Create(new StringReader(content))); 617Project project = new Project(XmlReader.Create(new StringReader(content))); 639Project project = new Project(XmlReader.Create(new StringReader(content)));
Microsoft.Build.Engine.UnitTests (22)
BackEnd\BuildRequestConfiguration_Tests.cs (1)
558using var xmlReader = XmlReader.Create(new StringReader(projectContents));
BackEnd\OnError_Tests.cs (1)
559Project p = new Project(XmlReader.Create(new StringReader(ObjectModelHelpers.CleanupFileContents(@"
BackEnd\ResultsCache_Tests.cs (1)
313using XmlReader xmlReader = XmlReader.Create(textReader);
Construction\XmlReaderWithoutLocation_Tests.cs (1)
158XmlReader reader = XmlReader.Create(new StringReader(
Definition\ItemDefinitionGroup_Tests.cs (7)
165Project p = new Project(XmlReader.Create(new StringReader( 194Project p = new Project(XmlReader.Create(new StringReader( 222Project p = new Project(XmlReader.Create(new StringReader( 816Project p = new Project(XmlReader.Create(new StringReader(@" 835Project p = new Project(XmlReader.Create(new StringReader(@" 851Project p = new Project(XmlReader.Create(new StringReader(@" 1062Project p = new Project(XmlReader.Create(new StringReader(@"
Definition\ProjectEvaluationContext_Tests.cs (1)
205using var xmlReader = XmlReader.Create(new StringReader("<Project Sdk=\"foo\"></Project>"));
Evaluation\Evaluator_Tests.cs (3)
1071Project project = new Project(XmlReader.Create(new StringReader(manifest)), null, null, pc, ProjectLoadSettings.RejectCircularImports); 3139Project project = new Project(XmlReader.Create(new StringReader(content)), globalProperties, null); 4987new Project(XmlReader.Create(new StringReader(projectContents)), null, "Fake", fakeProjectCollection));
Evaluation\Preprocessor_Tests.cs (1)
366using (XmlReader xr = XmlTextReader.Create(sr))
Evaluation\ProjectSdkImplicitImport_Tests.cs (6)
305Project project = new Project(ProjectRootElement.Create(XmlReader.Create(new StringReader(content)))); 329() => new Project(ProjectRootElement.Create(XmlReader.Create(new StringReader(content))))); 397ProjectRootElement.Create(XmlReader.Create(new StringReader(content))))); 421Project project = new Project(ProjectRootElement.Create(XmlReader.Create(new StringReader(content)))); 519using var xmlReader = XmlReader.Create(new StringReader(projectContents)); 665using var xmlReader = XmlReader.Create(new StringReader(projectContents));
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (28)
TargetTests.cs (28)
28XmlReader xmlReader = XmlReader.Create(new StringReader($@" 48XmlReader xmlReader = XmlReader.Create(new StringReader($@" 72XmlReader xmlReader = XmlReader.Create(new StringReader($@" 96XmlReader xmlReader = XmlReader.Create(new StringReader($@" 121XmlReader xmlReader = XmlReader.Create(new StringReader($@" 148XmlReader xmlReader = XmlReader.Create(new StringReader($@" 180XmlReader xmlReader = XmlReader.Create(new StringReader($@" 213XmlReader xmlReader = XmlReader.Create(new StringReader($@" 242XmlReader xmlReader = XmlReader.Create(new StringReader($@" 281XmlReader xmlReader = XmlReader.Create(new StringReader($@" 323XmlReader xmlReader = XmlReader.Create(new StringReader($@" 359XmlReader xmlReader = XmlReader.Create(new StringReader($@" 418XmlReader xmlReader = XmlReader.Create(new StringReader($@" 446XmlReader xmlReader = XmlReader.Create(new StringReader($@" 470XmlReader xmlReader = XmlReader.Create(new StringReader($@" 496XmlReader xmlReader = XmlReader.Create(new StringReader($@" 523XmlReader xmlReader = XmlReader.Create(new StringReader($@" 545XmlReader xmlReader = XmlReader.Create(new StringReader($@" 577XmlReader xmlReader = XmlReader.Create(new StringReader($@" 594XmlReader xmlReader = XmlReader.Create(new StringReader($@" 619XmlReader xmlReader = XmlReader.Create(new StringReader($@" 644XmlReader xmlReader = XmlReader.Create(new StringReader($@" 684XmlReader xmlReader = XmlReader.Create(new StringReader($@" 737XmlReader xmlReader = XmlReader.Create(new StringReader($@" 799XmlReader xmlReader = XmlReader.Create(new StringReader($@" 868XmlReader xmlReader = XmlReader.Create(new StringReader($@" 883XmlReader xmlReader = XmlReader.Create(new StringReader($@" 903XmlReader xmlReader = XmlReader.Create(new StringReader($"""
Microsoft.Build.Tasks.Core (2)
XslTransformation.cs (2)
337return XmlReader.Create(new StringReader(_data[itemPos])); 456using var xmlReader = XmlReader.Create(sr);
Microsoft.Build.UnitTests.Shared (4)
ObjectModelHelpers.cs (1)
666XmlReader.Create(new StringReader(cleanedProject)),
ProjectFromString.cs (3)
38_reader = XmlReader.Create(new StringReader(s)); 66_reader = XmlReader.Create(new StringReader(s)); 73_reader = XmlReader.Create(new StringReader(s));
PresentationFramework (1)
System\Windows\Markup\XamlReader.cs (1)
69XmlReader xmlReader = XmlReader.Create(stringReader);
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\SchemaExporter.cs (1)
355using var xmlReader = XmlReader.Create(new StringReader(stringWriter.ToString()));
System\Runtime\Serialization\SchemaImporter.cs (1)
602XmlSchema serializationSchema = XmlSchema.Read(XmlReader.Create(new StringReader(Globals.SerializationSchema)), null)!; // Source is our constant. Schema is valid.
System.Xaml (3)
System\Windows\Markup\XData.cs (1)
41get => _reader ??= Xml.XmlReader.Create(new StringReader(Text));
System\Xaml\XamlServices.cs (2)
26using (XmlReader xmlReader = XmlReader.Create(stringReader)) 59using (XmlReader xmlReader = XmlReader.Create(textReader))
System.Xaml.Tests (1)
System\Windows\Markup\XDataTests.cs (1)
50XmlReader reader = XmlReader.Create(new StringReader("<Text />"));