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