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