46 references to Create
Microsoft.Build (11)
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (1)
438
ElementLocation.
Create
(evr.File, evr.LineNumber, evr.ColumnNumber));
BuildCheck\Infrastructure\BuildEventsProcessor.cs (1)
145
ElementLocation invocationLocation = ElementLocation.
Create
(
Definition\ToolsetConfigurationReader.cs (3)
88
ElementLocation location = ElementLocation.
Create
(
142
InvalidToolsetDefinitionException.Throw(ex, "ConfigFileReadError", ElementLocation.
Create
(ex.Source, ex.Line, 0).LocationString, ex.BareMessage);
168
ElementLocation location = ElementLocation.
Create
(propertyElement.ElementInformation.Source, propertyElement.ElementInformation.LineNumber, 0);
ElementLocation\ElementLocation.cs (2)
166
return
Create
(file, line, column);
176
return
Create
(file, 0, 0);
ElementLocation\XmlAttributeWithLocation.cs (2)
38
_elementLocation = ElementLocation.
Create
(documentWithLocation.FullPath, lineNumber, columnNumber);
79
_elementLocation = ElementLocation.
Create
(ownerDocumentWithLocation.FullPath, _elementLocation.Line, _elementLocation.Column);
ElementLocation\XmlElementWithLocation.cs (2)
50
_elementLocation = ElementLocation.
Create
(documentWithLocation.FullPath, lineNumber, adjustedColumn);
99
_elementLocation = ElementLocation.
Create
(ownerDocumentWithLocation.FullPath, _elementLocation.Line, _elementLocation.Column);
Microsoft.Build.Engine.UnitTests (35)
BackEnd\AssemblyTaskFactory_Tests.cs (6)
134
Assert.True(_taskFactory.TaskNameCreatableByFactory("TaskToTestFactories", null, String.Empty, null, ElementLocation.
Create
(".", 1, 1)));
143
Assert.False(_taskFactory.TaskNameCreatableByFactory("NotInAssembly", null, String.Empty, null, ElementLocation.
Create
(".", 1, 1)));
154
Assert.False(_taskFactory.TaskNameCreatableByFactory(String.Empty, null, String.Empty, null, ElementLocation.
Create
(".", 1, 1)));
165
Assert.False(_taskFactory.TaskNameCreatableByFactory(null, null, String.Empty, null, ElementLocation.
Create
(".", 1, 1)));
185
Assert.True(_taskFactory.TaskNameCreatableByFactory("TaskToTestFactories", taskIdentityParameters, String.Empty, null, ElementLocation.
Create
(".", 1, 1)));
205
Assert.False(_taskFactory.TaskNameCreatableByFactory("TaskToTestFactories", taskIdentityParameters, String.Empty, null, ElementLocation.
Create
(".", 1, 1)));
BackEnd\TaskExecutionHost_Tests.cs (9)
943
Assert.False(_host.GatherTaskOutputs("NonExistentOutput", ElementLocation.
Create
(".", 1, 1), true, "output"));
992
ElementLocation.
Create
("none", 1, 1),
1020
ElementLocation.
Create
("none", 1, 1),
1259
ElementLocation.
Create
("none", 1, 1),
1299
Assert.True(_host.GatherTaskOutputs(outputName, ElementLocation.
Create
(".", 1, 1), true, "output"));
1311
Assert.True(_host.GatherTaskOutputs(outputName, ElementLocation.
Create
(".", 1, 1), true, "output"));
1323
Assert.True(_host.GatherTaskOutputs(outputName, ElementLocation.
Create
(".", 1, 1), true, "output"));
1338
Assert.True(_host.GatherTaskOutputs(outputName, ElementLocation.
Create
(".", 1, 1), true, "output"));
1353
Assert.True(_host.GatherTaskOutputs(outputName, ElementLocation.
Create
(".", 1, 1), false, "output"));
BackEnd\TaskHost_Tests.cs (1)
73
_elementLocation = ElementLocation.
Create
("MockFile", 5, 5);
BackEnd\TaskRegistry_Tests.cs (2)
77
private readonly ElementLocation _elementLocation = ElementLocation.
Create
("c:\\project.proj", 0, 0);
1247
InvalidProjectFileException exception = Should.Throw<InvalidProjectFileException>(() => registry.GetRegisteredTask("Task1", "none", null, false, new TargetLoggingContext(_loggingService, new BuildEventContext(1, 1, BuildEventContext.InvalidProjectContextId, 1)), ElementLocation.
Create
("none", 1, 2)));
Construction\ElementLocation_Tests.cs (17)
41
IElementLocation location = ElementLocation.
Create
("file", 65536, 0);
54
IElementLocation location = ElementLocation.
Create
("file", 0, 65536);
67
IElementLocation location = ElementLocation.
Create
("file", 65536, 65537);
80
IElementLocation location1 = ElementLocation.
Create
("file", 65536, 65537);
81
IElementLocation location2 = ElementLocation.
Create
("file", 0, 1);
82
IElementLocation location3 = ElementLocation.
Create
("file", 0, 65537);
83
IElementLocation location4 = ElementLocation.
Create
("file", 65536, 1);
84
IElementLocation location5 = ElementLocation.
Create
("file", 0, 1);
85
IElementLocation location6 = ElementLocation.
Create
("file", 65536, 65537);
163
IElementLocation location = ElementLocation.
Create
("file", 65536, 65537);
199
IElementLocation location = ElementLocation.
Create
("file", 65535, 65534);
214
ElementLocation.
Create
("file", -1, 2);
225
ElementLocation.
Create
("file", 1, -2);
244
IElementLocation location = ElementLocation.
Create
("file", 65535, 0);
257
IElementLocation location = ElementLocation.
Create
("file", 0, 65535);
270
IElementLocation location = ElementLocation.
Create
("file", 65535, 65534);
283
IElementLocation location = ElementLocation.
Create
("file", 65535, 2);