39 writes to FullPath
Microsoft.Build (7)
Construction\ProjectRootElement.cs (2)
791{ FullPath = path }; 1579FullPath = path;
Construction\Solution\SolutionProjectGenerator.cs (2)
863traversalProject.FullPath = _solutionFile.FullPath + ".metaproj"; 995traversalProject.FullPath = path;
Definition\Project.cs (2)
764set => Xml.FullPath = value; 2414set => Xml.FullPath = value;
Evaluation\Evaluator.cs (1)
1921project.FullPath = projectPath;
Microsoft.Build.Engine.OM.UnitTests (27)
Construction\ElementLocationPublic_Tests.cs (4)
30project.FullPath = "c:\\x"; 47project.FullPath = "c:\\x"; 55project.FullPath = "c:\\y"; 68project.FullPath = "c:\\x";
Construction\ProjectRootElement_Tests.cs (8)
161project.FullPath = "X"; 192projectXml1.FullPath = Path.Combine(Directory.GetCurrentDirectory(), @"xyz\abc"); 208projectXml1.FullPath = @"xyz\abc"; 227projectXml1.FullPath = @"xyz\abc"; 246projectXml1.FullPath = Path.Combine(Directory.GetCurrentDirectory(), @"xyz\abc"); 260projectXml1.FullPath = Microsoft.Build.Shared.FileUtilities.GetTemporaryFile(); 263projectXml2.FullPath = projectXml1.FullPath; 763project.FullPath = FileUtilities.GetTemporaryFile();
Definition\Project_Tests.cs (3)
716xml.FullPath = file; 752xml.FullPath = file; 790xml.FullPath = file;
Definition\ProjectCollection_Tests.cs (2)
1360pre.FullPath = FileUtilities.GetTemporaryFile(); 1423pre.FullPath = FileUtilities.GetTemporaryFile();
Instance\ProjectInstance_Tests.cs (6)
421projA.FullPath = Path.Combine(Path.GetTempPath(), "a.proj"); 422projB.FullPath = Path.Combine(Path.GetTempPath(), "b.proj"); 457projA.FullPath = Path.Combine(Path.GetTempPath(), "a.proj"); 458projB.FullPath = Path.Combine(Path.GetTempPath(), "b.proj"); 505projA.FullPath = Path.Combine(tempDir, "a.proj"); 506projB.FullPath = Path.Combine(tempDir, "b.proj");
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (2)
44newReal.Xml.FullPath = tempPath; 59xmlPair.VerifySetter(this.StdGroup.Disk.GetAbsolutePath("tempRenamed"), (p) => p.FullPath, (p, v) => p.FullPath = v);
ObjectModelRemoting\LinkedSpecialCasesScenarios.cs (1)
81newReal.Xml.FullPath = tempPath;
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectRootElementLink.cs (1)
37public string FullPath { get => this.ProjectXml.FullPath; set => this.ProjectXml.FullPath = value; }
Microsoft.Build.Engine.UnitTests (4)
BackEnd\BuildManager_Tests.cs (2)
3701mainRootElement.FullPath = testFiles.CreatedFiles[1]; 3852root.FullPath = Path.GetTempFileName();
Evaluation\Preprocessor_Tests.cs (1)
361twoXml.FullPath = "p2";
ExpressionTreeExpression_Tests.cs (1)
372xml.FullPath = @"c:\abc\foo.proj";
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Build\ProjectBuildManager.cs (1)
103xml.FullPath = path;
147 references to FullPath
Microsoft.Build (76)
Construction\ProjectRootElement.cs (7)
383public string EscapedFullPath => _escapedFullPath ?? (_escapedFullPath = ProjectCollection.Escape(FullPath)); 438MarkDirty("Set project FullPath to '{0}'", FullPath); 1624ErrorUtilities.VerifyThrowInvalidOperation(!string.IsNullOrEmpty(FullPath), "ValueNotSet", $"{nameof(ProjectRootElement)}.{nameof(FullPath)}"); 1626ReloadFrom(FullPath, throwIfUnsavedChanges, preserveFormatting); 1657/// Reloading from an XMLReader will retain the previous root element location (<see cref="FullPath"/>, <see cref="DirectoryPath"/>, <see cref="ProjectFileLocation"/>). 1680document.FullPath = FullPath;
Construction\Solution\SolutionProjectGenerator.cs (2)
992string path = traversalProject.FullPath; 1017if (traversalInstance.Targets[targetName].Location.File == traversalProject.FullPath)
Definition\Project.cs (4)
762get => Xml.FullPath; 2089Trace.WriteLine(String.Format(CultureInfo.InvariantCulture, "MSBUILD: Is dirty because {0} [{1} - {2}] [PC Hash {3}]", reason, FullPath, import.ImportedProject.FullPath == FullPath ? String.Empty : import.ImportedProject.FullPath, ProjectCollection.GetHashCode())); 2412get => Xml.FullPath;
Definition\ProjectCollection.cs (1)
1393ErrorUtilities.ThrowInvalidOperation("OM_ProjectXmlCannotBeUnloadedDueToLoadedProjects", projectRootElement.FullPath, conflictingProject.FullPath);
Definition\ProjectItem.cs (1)
862value = BuiltInMetadata.GetMetadataValueEscaped(_project.DirectoryPath, _evaluatedIncludeBeforeWildcardExpansionEscaped, _evaluatedIncludeEscaped, this.Xml.ContainingProject.FullPath, name, ref _fullPath);
Evaluation\Evaluator.cs (30)
268if (projectRootElement.FullPath != null) 410items.Add(itemFactory.CreateItem(includeSplitFileEscaped, includeSplitEscaped, itemElement.ContainingProject.FullPath)); 810string output = String.Format(CultureInfo.CurrentUICulture, "###: MSBUILD: Evaluating or reevaluating project {0} with {1} global properties and {2} tools version, child count {3}, CurrentSolutionConfigurationContents hash {4} other properties:\n{5}", _projectRootElement.FullPath, globalPropertiesCount, _data.Toolset.ToolsVersion, _projectRootElement.Count, hash, propertyDump); 862using (_evaluationProfiler.TrackFile(currentProjectOrImport.FullPath)) 1159if (String.IsNullOrEmpty(_projectRootElement.FullPath)) 1173string projectFileWithoutExtension = EscapingUtilities.Escape(Path.GetFileNameWithoutExtension(_projectRootElement.FullPath)); 1174string projectExtension = EscapingUtilities.Escape(Path.GetExtension(_projectRootElement.FullPath)); 1698importElement.ContainingProject.FullPath, 1706ProjectFile = importElement.ContainingProject.FullPath 1813ProjectFile = importElement.ContainingProject.FullPath, 1916string projectPath = _projectRootElement.FullPath + ".SdkResolver." + propertiesAndItemsHash + ".proj"; 1986importElement.ContainingProject.FullPath, 1992ProjectFile = importElement.ContainingProject.FullPath, 2047importElement.ContainingProject.FullPath, 2053ProjectFile = importElement.ContainingProject.FullPath, 2082if (String.Equals(_projectRootElement.FullPath, importFileUnescaped, StringComparison.OrdinalIgnoreCase) /* We are trying to import ourselves */) 2099string importedBy = importElement.ContainingProject.FullPath ?? String.Empty; 2125parenthesizedProjectLocation = "[" + _projectRootElement.FullPath + "]"; 2177_streamImports.Add(importedProjectElement.FullPath); 2187importedProjectElement.FullPath, 2188importElement.ContainingProject.FullPath, 2193ImportedProjectFile = importedProjectElement.FullPath, 2195ProjectFile = importElement.ContainingProject.FullPath 2219importElement.ContainingProject.FullPath, 2225ProjectFile = importElement.ContainingProject.FullPath, 2274importElement.ContainingProject.FullPath, 2280ProjectFile = importElement.ContainingProject.FullPath, 2350string importedBy = importElement.ContainingProject.FullPath; 2570? $"{_lastModifiedProject.FullPath}{streamImports}" 2571: $"{_lastModifiedProject.FullPath}{streamImports};{oldValue.EvaluatedValue}",
Evaluation\LazyItemEvaluator.cs (1)
135var clonedItem = itemFactory.CreateItem(Item, OriginatingItemElement.ContainingProject.FullPath);
Evaluation\LazyItemEvaluator.IncludeOperation.cs (2)
89itemsToAdd.Add(_itemFactory.CreateItem(value, value, _itemElement.ContainingProject.FullPath)); 132itemsToAdd.Add(_itemFactory.CreateItem(includeSplitFileEscaped, glob, _itemElement.ContainingProject.FullPath));
Evaluation\Preprocessor.cs (2)
313$"\r\n{new String('=', 140)}\r\n{importTag}\r\n\r\n{resolved.FullPath.Replace("--", "__")}\r\n{new String('=', 140)}\r\n")); 315_filePaths.Push(resolved.FullPath);
Evaluation\ProjectParser.cs (1)
136ProjectErrorUtilities.VerifyThrowInvalidProject(element.Name != XMakeElements.visualStudioProject, element.Location, "ProjectUpgradeNeeded", _project.FullPath);
Evaluation\ProjectRootElementCache.cs (14)
211using (var xtr = XmlReaderExtension.Create(projectRootElement.FullPath, projectRootElement.ProjectRootElementCache.LoadProjectsReadOnly)) 352projectRootElement.FullPath.Equals(projectFile, StringComparison.OrdinalIgnoreCase), 355projectRootElement.FullPath); 521if (projectRootElement.FullPath != null) 525_weakCache.Remove(projectRootElement.FullPath); 539ErrorUtilities.VerifyThrowInternalNull(projectRootElement.FullPath, "FullPath"); 559_weakCache.TryGetValue(projectRootElement.FullPath, out existingWeakEntry); 566DebugTraceCache("Adding: ", projectRootElement.FullPath); 567_weakCache[projectRootElement.FullPath] = projectRootElement; 607DebugTraceCache("Shedding: ", node.Value.FullPath); 620DebugTraceCache("Forgetting: ", projectRootElement.FullPath); 622_weakCache.Remove(projectRootElement.FullPath); 630DebugTraceCache("Out of date dropped from XML cache: ", projectRootElement.FullPath); 640if (_weakCache.TryGetValue(projectRootElement.FullPath, out var cached) && cached == projectRootElement)
Evaluation\SimpleProjectRootElementCache.cs (5)
67rootElement.FullPath.Equals(key, StringComparison.OrdinalIgnoreCase), 70rootElement.FullPath); 83if (_cache.TryAdd(projectRootElement.FullPath, projectRootElement)) 127if (projectRootElement.FullPath != null) 129_cache.TryRemove(projectRootElement.FullPath, out _);
Instance\ProjectInstance.cs (5)
1845_importPaths.Add(import.FullPath); 1854_importPathsIncludingDuplicates.Add(import.FullPath); 3239importPaths.Add(resolvedImport.ImportedProject.FullPath); 3252importPathsIncludingDuplicates.Add(resolvedImport.ImportedProject.FullPath); 3426return import.ImportedProject.FullPath;
ObjectModelRemoting\ConstructionObjectLinks\ProjectRootElementLink.cs (1)
46/// Access to remote <see cref="ProjectRootElement.FullPath"/>.
Microsoft.Build.Engine.OM.UnitTests (56)
Construction\ElementLocationPublic_Tests.cs (6)
35Assert.Equal(project.FullPath, target.Location.File); 36Assert.Equal(project.FullPath, target.OutputsLocation.File); 52Assert.Equal(project.FullPath, target.Location.File); 53Assert.Equal(project.FullPath, target.OutputsLocation.File); 57Assert.Equal(project.FullPath, target.Location.File); 58Assert.Equal(project.FullPath, target.OutputsLocation.File);
Construction\ProjectRootElement_Tests.cs (10)
163Assert.Equal(project.FullPath, Path.Combine(Directory.GetCurrentDirectory(), "X")); 178ProjectRootElement projectXml2 = ProjectRootElement.Open(projectXml1.FullPath); 263projectXml2.FullPath = projectXml1.FullPath; 645Assert.Equal(path, project.FullPath); 677Assert.Equal(path, project.FullPath); 764string projectFullPath = project.FullPath; 1303var xml0 = ProjectRootElement.TryOpen(projectXml.FullPath, projectCollection, preserveFormatting: true); 1306var xml1 = ProjectRootElement.TryOpen(projectXml.FullPath, projectCollection, preserveFormatting: false); 1309var xml2 = ProjectRootElement.TryOpen(projectXml.FullPath, projectCollection, preserveFormatting: null); 1767projectFileAssert.Invoke(initialLocation, reloadLocation, EmptyIfNull(rootElement.FullPath));
Definition\Project_Tests.cs (25)
2558zero.AddImport(one.FullPath); 2559zero.AddImport(two.FullPath); 2560zero.AddImport(two.FullPath); // Duplicated import: only the first one should be entered 2561zero.AddImport(zero.FullPath); // Ignored self import 2565one.AddImport(three.FullPath); 2569one.AddImport(four.FullPath).Condition = "false"; // False condition; should not be entered 3917eventArgs.ProjectFile.ShouldBe(pre.FullPath); 3922logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.FullPath}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to false condition; ( \'$(Something)\' == \'nothing\' ) was evaluated as ( \'\' == \'nothing\' )."); 3958eventArgs.ProjectFile.ShouldBe(pre.FullPath); 3963logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.FullPath}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to no matching files."); 4003eventArgs.ProjectFile.ShouldBe(pre.FullPath); 4008logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.FullPath}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to the file being empty."); 4050eventArgs.ProjectFile.ShouldBe(pre.FullPath); 4055logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.FullPath}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to the file being invalid."); 4090eventArgs.ProjectFile.ShouldBe(pre.FullPath); 4095logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.FullPath}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to the expression evaluating to an empty string."); 4133eventArgs.ProjectFile.ShouldBe(pre.FullPath); 4138logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.FullPath}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to the file not existing."); 4176eventArgs.ProjectFile.ShouldBe(pre.FullPath); 4181logger.AssertLogContains($"Project \"{import.Project}\" was not imported by \"{pre.FullPath}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}), due to no matching files."); 4206var import = pre2.AddImport(pre1.FullPath); 4219eventArgs.ImportedProjectFile.ShouldBe(pre1.FullPath); 4221eventArgs.ProjectFile.ShouldBe(pre2.FullPath); 4227logger.AssertLogContains($"Importing project \"{pre1.FullPath}\" into project \"{pre2.FullPath}\" at ({eventArgs.LineNumber},{eventArgs.ColumnNumber}).");
Definition\ProjectCollection_Tests.cs (1)
726ProjectCollection.GlobalProjectCollection.LoadProject(xml.FullPath);
Definition\ProtectImports_Tests.cs (3)
529Assert.Equal(_importFilename, item.Xml.ContainingProject.FullPath); // "Item was not found in the imported project." 620Assert.Equal(_importFilename, property.Xml.ContainingProject.FullPath); // "Property was not found in the imported project." 636Assert.Null(item.Xml.ContainingProject.FullPath); // "Item was not found in the project." // null because XML is in-memory
Instance\ProjectInstance_Tests.cs (6)
431Assert.Equal(projB.FullPath, projBInstanceItem.GetMetadataValue(CapturedMetadataName)); 432Assert.Equal(projA.FullPath, projAInstanceItem.GetMetadataValue(CapturedMetadataName)); 473Assert.Equal(projB.FullPath, projBInstanceItem.GetMetadataValue(CapturedMetadataName)); 474Assert.Equal(projA.FullPath, projAInstanceItem.GetMetadataValue(CapturedMetadataName)); 515Assert.Equal(projA.FullPath, projAInstanceItem.GetMetadataValue(CapturedMetadataName)); 516Assert.Equal(projB.FullPath, projBInstanceItem.GetMetadataValue(CapturedMetadataName));
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
525Assert.Equal(realXml.FullPath, viewXml.FullPath);
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (2)
59xmlPair.VerifySetter(this.StdGroup.Disk.GetAbsolutePath("tempRenamed"), (p) => p.FullPath, (p, v) => p.FullPath = v); 136Assert.True(string.IsNullOrEmpty(clone.FullPath));
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectRootElementLink.cs (1)
37public string FullPath { get => this.ProjectXml.FullPath; set => this.ProjectXml.FullPath = value; }
Microsoft.Build.Engine.UnitTests (14)
Definition\Project_Internal_Tests.cs (2)
280projectRootElement.FullPath, 335using (XmlReader xmlReader = XmlReader.Create(projectRootElement.FullPath))
Evaluation\Evaluator_Tests.cs (2)
1011bool circularImportsAreRecorded = project.ImportsIncludingDuplicates.Any(resolvedImport => string.Equals(resolvedImport.ImportingElement.ContainingProject.FullPath, importPath2, StringComparison.OrdinalIgnoreCase)); 1479ProjectRootElement importXml = ProjectRootElement.Open(project.Items.ElementAt(0).Xml.ContainingProject.FullPath);
Evaluation\Preprocessor_Tests.cs (5)
779File.Delete(xml1.FullPath); 780File.Delete(xml2.FullPath); 781File.Delete(xml3.FullPath); 994var virtualImport = project.Imports.First(i => i.ImportedProject.FullPath.StartsWith(projectPath + ".SdkResolver")); 995string virtualProjectPath = virtualImport.ImportedProject.FullPath;
Evaluation\ProjectSdkImplicitImport_Tests.cs (4)
144Assert.Equal(_sdkPropsPath, initialResolvedImport.ImportedProject.FullPath); 148Assert.Equal(_sdkTargetsPath, finalResolvedImport.ImportedProject.FullPath); 825Assert.NotNull(property?.Xml?.ContainingProject?.FullPath); 827Assert.Equal(expectedContainingProjectPath, property.Xml.ContainingProject.FullPath);
Instance\ProjectInstance_Internal_Tests.cs (1)
900projectRootElement.FullPath,
TaskUsageLogger (1)
TaskUsageLogger.cs (1)
289UsingTaskData taskData = new UsingTaskData(evaluatedTaskName, evaluatedTaskAssemblyPath, pre.FullPath);