36 references to Create
Microsoft.Build (9)
Construction\ProjectRootElement.cs (2)
436_projectFileLocation = ElementLocation.Create(newFullPath); 2107_projectFileLocation = ElementLocation.Create(fullPath);
Definition\ProjectCollection.cs (1)
383ProjectErrorUtilities.ThrowInvalidProject(ElementLocation.Create("MSBUILD"), "InvalidProperty", ex.Message);
Evaluation\ProjectParser.cs (1)
134ProjectErrorUtilities.ThrowInvalidProject(ElementLocation.Create(_document.FullPath), "NoRootProjectElement", XMakeElements.project);
Graph\ProjectGraph.cs (1)
679ElementLocation.Create(Solution.FullPath),
Instance\ProjectInstance.cs (4)
382_projectFileLocation = ElementLocation.Create(projectPath); 435_projectFileLocation = ElementLocation.Create(projectPath); 565_projectFileLocation = ElementLocation.Create(projectFile); 680_projectFileLocation = ElementLocation.Create(fullPath);
Microsoft.Build.Engine.UnitTests (27)
BackEnd\AssemblyTaskFactory_Tests.cs (19)
66taskFactory.InitializeFactory(null, "TaskToTestFactories", new Dictionary<string, TaskPropertyInfo>(), string.Empty, TaskHostParameters.Empty, false, null, ElementLocation.Create("NONE"), String.Empty); 78taskFactory.InitializeFactory(_loadInfo, null, new Dictionary<string, TaskPropertyInfo>(), string.Empty, TaskHostParameters.Empty, false, null, ElementLocation.Create("NONE"), String.Empty); 90taskFactory.InitializeFactory(_loadInfo, String.Empty, new Dictionary<string, TaskPropertyInfo>(), string.Empty, TaskHostParameters.Empty, false, null, ElementLocation.Create("NONE"), String.Empty); 102taskFactory.InitializeFactory(_loadInfo, "RandomTask", new Dictionary<string, TaskPropertyInfo>(), string.Empty, TaskHostParameters.Empty, false, null, ElementLocation.Create("NONE"), String.Empty); 248ElementLocation.Create("MSBUILD"), 286ElementLocation.Create("MSBUILD"), 324ElementLocation.Create("MSBUILD"), 364ElementLocation.Create("MSBUILD"), 404ElementLocation.Create("MSBUILD"), 446ElementLocation.Create("MSBUILD"), 486ElementLocation.Create("MSBUILD"), 524ElementLocation.Create("MSBUILD"), 566ElementLocation.Create("MSBUILD"), 604ElementLocation.Create("MSBUILD"), 644ElementLocation.Create("MSBUILD"), 684ElementLocation.Create("MSBUILD"), 725ElementLocation.Create("MSBUILD"), 755ElementLocation.Create("MSBUILD"), 799_loadedType = _taskFactory.InitializeFactory(_loadInfo, "TaskToTestFactories", new Dictionary<string, TaskPropertyInfo>(), string.Empty, factoryParameters, explicitlyLaunchTaskHost, new TestLoggingContext(null!, new BuildEventContext(1, 2, 3, 4)), ElementLocation.Create("NONE"), String.Empty);
BackEnd\TaskExecutionHost_Tests.cs (7)
144parameters["ExecuteReturnParam"] = ("true", ElementLocation.Create("foo.proj")); 170parameters["NonExistentParam"] = ("foo", ElementLocation.Create("foo.proj")); 609parameters["ExecuteReturnParam"] = ("true", ElementLocation.Create("foo.proj")); 625parameters["ExecuteReturnParam"] = ("false", ElementLocation.Create("foo.proj")); 643parameters["ExecuteReturnParam"] = ("false", ElementLocation.Create("foo.proj")); 1485parameters[parameterName] = (value, ElementLocation.Create("foo.proj")); 1496parameters["ExecuteReturnParam"] = (returnParam ? "true" : "false", ElementLocation.Create("foo.proj"));
Construction\ElementLocation_Tests.cs (1)
234IElementLocation location = ElementLocation.Create(null);