1 write to DirectoryPath
Microsoft.Build (1)
Instance\ProjectInstance.cs (1)
3171DirectoryPath = Path.GetDirectoryName(projectFile)
26 references to DirectoryPath
dotnet (1)
MsbuildProject.cs (1)
49ProjectDirectory = PathUtilities.EnsureTrailingSlash(ProjectRootElement.DirectoryPath);
dotnet-aot (1)
src\sdk\src\Cli\dotnet\MsbuildProject.cs (1)
49ProjectDirectory = PathUtilities.EnsureTrailingSlash(ProjectRootElement.DirectoryPath);
Microsoft.Build (24)
Construction\ProjectRootElement.cs (2)
1542Directory.CreateDirectory(DirectoryPath); 1681/// Reloading from an XMLReader will retain the previous root element location (<see cref="FullPath"/>, <see cref="DirectoryPath"/>, <see cref="ProjectFileLocation"/>).
Definition\Project.cs (3)
764public string DirectoryPath => Xml.DirectoryPath; 2437public string DirectoryPath => Xml.DirectoryPath; 2678EvaluationItemSpec expandedItemSpec = new EvaluationItemSpec(itemSpec, _data.Expander, elementLocation, itemElement.ContainingProject.DirectoryPath, expandProperties: true);
Evaluation\Evaluator.cs (10)
963EvaluateImportElement(currentProjectOrImport.DirectoryPath, import); 988EvaluateImportElement(currentProjectOrImport.DirectoryPath, import); 991EvaluateImportGroupElement(currentProjectOrImport.DirectoryPath, importGroup); 994_usingTaskElements.Add(new KeyValuePair<string, ProjectUsingTaskElement>(currentProjectOrImport.DirectoryPath, usingTask)); 1013EvaluateImportElement(currentProjectOrImport.DirectoryPath, import); 1237SetBuiltInProperty(ReservedPropertyNames.projectDirectory, string.IsNullOrEmpty(_projectRootElement.DirectoryPath) ? 1242_projectRootElement.DirectoryPath); 1252string projectDirectory = EscapingUtilities.Escape(_projectRootElement.DirectoryPath); 1403lazyEvaluator.ProcessItemElement(_projectRootElement.DirectoryPath, itemElement, conditionResult); 2569return element.ContainingProject.DirectoryPath;
Evaluation\GlobResultBuilder.cs (3)
111var includeItemspec = new ItemSpec<P, I>(itemElement.Include, expander, itemElement.IncludeLocation, itemElement.ContainingProject.DirectoryPath); 141var excludeItemspec = new ItemSpec<P, I>(itemElement.Exclude, expander, itemElement.ExcludeLocation, itemElement.ContainingProject.DirectoryPath); 183var removeSpec = new ItemSpec<P, I>(itemElement.Remove, expander, itemElement.RemoveLocation, itemElement.ContainingProject.DirectoryPath);
Evaluation\LazyItemEvaluator.cs (1)
111return element.ContainingProject.DirectoryPath;
Evaluation\LazyItemEvaluator.LazyItemOperation.cs (2)
214itemContext.OperationItem.SetMetadata(metadataElement, FileUtilities.MaybeAdjustFilePath(evaluatedValue, metadataElement.ContainingProject.DirectoryPath)); 251evaluatedValue = FileUtilities.MaybeAdjustFilePath(evaluatedValue, metadataElement.ContainingProject.DirectoryPath);
Instance\ProjectInstance.cs (1)
3262_directory = xml.DirectoryPath;
Instance\TaskRegistry.cs (1)
297projectUsingTaskXml.ContainingProject.DirectoryPath,
ObjectModelRemoting\ConstructionObjectLinks\ProjectRootElementLink.cs (1)
39/// Access to remote <see cref="ProjectRootElement.DirectoryPath"/>.