1 write to DirectoryPath
Microsoft.Build (1)
Instance\ProjectInstance.cs (1)
2998DirectoryPath = Path.GetDirectoryName(projectFile)
33 references to DirectoryPath
Microsoft.Build (24)
Construction\ProjectRootElement.cs (2)
1518Directory.CreateDirectory(DirectoryPath); 1657/// Reloading from an XMLReader will retain the previous root element location (<see cref="FullPath"/>, <see cref="DirectoryPath"/>, <see cref="ProjectFileLocation"/>).
Definition\Project.cs (6)
752public string DirectoryPath => Xml.DirectoryPath; 2402public string DirectoryPath => Xml.DirectoryPath; 2619var includeItemspec = new EvaluationItemSpec(itemElement.Include, _data.Expander, itemElement.IncludeLocation, itemElement.ContainingProject.DirectoryPath); 2635var excludeItemspec = new EvaluationItemSpec(itemElement.Exclude, _data.Expander, itemElement.ExcludeLocation, itemElement.ContainingProject.DirectoryPath); 2675var removeSpec = new EvaluationItemSpec(itemElement.Remove, _data.Expander, itemElement.RemoveLocation, itemElement.ContainingProject.DirectoryPath); 2798EvaluationItemSpec expandedItemSpec = new EvaluationItemSpec(itemSpec, _data.Expander, elementLocation, itemElement.ContainingProject.DirectoryPath, expandProperties: true);
Evaluation\Evaluator.cs (10)
887EvaluateImportElement(currentProjectOrImport.DirectoryPath, import); 912EvaluateImportElement(currentProjectOrImport.DirectoryPath, import); 915EvaluateImportGroupElement(currentProjectOrImport.DirectoryPath, importGroup); 918_usingTaskElements.Add(new KeyValuePair<string, ProjectUsingTaskElement>(currentProjectOrImport.DirectoryPath, usingTask)); 937EvaluateImportElement(currentProjectOrImport.DirectoryPath, import); 1161SetBuiltInProperty(ReservedPropertyNames.projectDirectory, String.IsNullOrEmpty(_projectRootElement.DirectoryPath) ? 1166_projectRootElement.DirectoryPath); 1176string projectDirectory = EscapingUtilities.Escape(_projectRootElement.DirectoryPath); 1321lazyEvaluator.ProcessItemElement(_projectRootElement.DirectoryPath, itemElement, conditionResult); 2452return element.ContainingProject.DirectoryPath;
Evaluation\LazyItemEvaluator.cs (1)
111return element.ContainingProject.DirectoryPath;
Evaluation\LazyItemEvaluator.LazyItemOperation.cs (2)
215itemContext.OperationItem.SetMetadata(metadataElement, FileUtilities.MaybeAdjustFilePath(evaluatedValue, metadataElement.ContainingProject.DirectoryPath)); 252evaluatedValue = FileUtilities.MaybeAdjustFilePath(evaluatedValue, metadataElement.ContainingProject.DirectoryPath);
Instance\ProjectInstance.cs (1)
3088_directory = xml.DirectoryPath;
Instance\TaskRegistry.cs (1)
306projectUsingTaskXml.ContainingProject.DirectoryPath,
ObjectModelRemoting\ConstructionObjectLinks\ProjectRootElementLink.cs (1)
41/// Access to remote <see cref="ProjectRootElement.DirectoryPath"/>.
Microsoft.Build.Engine.OM.UnitTests (9)
Construction\ProjectRootElement_Tests.cs (4)
646Assert.Equal(directory, project.DirectoryPath); 678Assert.Equal(directory, project.DirectoryPath); 1775Assert.Equal(NativeMethodsShared.GetCurrentDirectory(), rootElement.DirectoryPath); 1779projectFileAssert.Invoke(Path.GetDirectoryName(initialLocation), Path.GetDirectoryName(reloadLocation), rootElement.DirectoryPath);
Definition\Project_Tests.cs (2)
4111string importPath = Path.Combine(pre.DirectoryPath, Guid.NewGuid().ToString()); 4154string importGlob = Path.Combine(pre.DirectoryPath, @"__NoMatch__\**");
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
526Assert.Equal(realXml.DirectoryPath, viewXml.DirectoryPath);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectRootElementLink.cs (1)
36public string DirectoryPath => this.ProjectXml.DirectoryPath;