46 references to Create
Microsoft.Build (11)
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (1)
438ElementLocation.Create(evr.File, evr.LineNumber, evr.ColumnNumber));
BuildCheck\Infrastructure\BuildEventsProcessor.cs (1)
145ElementLocation invocationLocation = ElementLocation.Create(
Definition\ToolsetConfigurationReader.cs (3)
88ElementLocation location = ElementLocation.Create( 142InvalidToolsetDefinitionException.Throw(ex, "ConfigFileReadError", ElementLocation.Create(ex.Source, ex.Line, 0).LocationString, ex.BareMessage); 168ElementLocation location = ElementLocation.Create(propertyElement.ElementInformation.Source, propertyElement.ElementInformation.LineNumber, 0);
ElementLocation\ElementLocation.cs (2)
166return Create(file, line, column); 176return 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)
134Assert.True(_taskFactory.TaskNameCreatableByFactory("TaskToTestFactories", null, String.Empty, null, ElementLocation.Create(".", 1, 1))); 143Assert.False(_taskFactory.TaskNameCreatableByFactory("NotInAssembly", null, String.Empty, null, ElementLocation.Create(".", 1, 1))); 154Assert.False(_taskFactory.TaskNameCreatableByFactory(String.Empty, null, String.Empty, null, ElementLocation.Create(".", 1, 1))); 165Assert.False(_taskFactory.TaskNameCreatableByFactory(null, null, String.Empty, null, ElementLocation.Create(".", 1, 1))); 185Assert.True(_taskFactory.TaskNameCreatableByFactory("TaskToTestFactories", taskIdentityParameters, String.Empty, null, ElementLocation.Create(".", 1, 1))); 205Assert.False(_taskFactory.TaskNameCreatableByFactory("TaskToTestFactories", taskIdentityParameters, String.Empty, null, ElementLocation.Create(".", 1, 1)));
BackEnd\TaskExecutionHost_Tests.cs (9)
943Assert.False(_host.GatherTaskOutputs("NonExistentOutput", ElementLocation.Create(".", 1, 1), true, "output")); 992ElementLocation.Create("none", 1, 1), 1020ElementLocation.Create("none", 1, 1), 1259ElementLocation.Create("none", 1, 1), 1299Assert.True(_host.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), true, "output")); 1311Assert.True(_host.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), true, "output")); 1323Assert.True(_host.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), true, "output")); 1338Assert.True(_host.GatherTaskOutputs(outputName, ElementLocation.Create(".", 1, 1), true, "output")); 1353Assert.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)
77private readonly ElementLocation _elementLocation = ElementLocation.Create("c:\\project.proj", 0, 0); 1247InvalidProjectFileException 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)
41IElementLocation location = ElementLocation.Create("file", 65536, 0); 54IElementLocation location = ElementLocation.Create("file", 0, 65536); 67IElementLocation location = ElementLocation.Create("file", 65536, 65537); 80IElementLocation location1 = ElementLocation.Create("file", 65536, 65537); 81IElementLocation location2 = ElementLocation.Create("file", 0, 1); 82IElementLocation location3 = ElementLocation.Create("file", 0, 65537); 83IElementLocation location4 = ElementLocation.Create("file", 65536, 1); 84IElementLocation location5 = ElementLocation.Create("file", 0, 1); 85IElementLocation location6 = ElementLocation.Create("file", 65536, 65537); 163IElementLocation location = ElementLocation.Create("file", 65536, 65537); 199IElementLocation location = ElementLocation.Create("file", 65535, 65534); 214ElementLocation.Create("file", -1, 2); 225ElementLocation.Create("file", 1, -2); 244IElementLocation location = ElementLocation.Create("file", 65535, 0); 257IElementLocation location = ElementLocation.Create("file", 0, 65535); 270IElementLocation location = ElementLocation.Create("file", 65535, 65534); 283IElementLocation location = ElementLocation.Create("file", 65535, 2);