12 writes to FilePath
aspire-managed (1)
NuGet\Commands\RestoreCommand.cs (1)
386FilePath = projectPath,
Microsoft.Build.NuGetSdkResolver (1)
RestoreRunnerEx.cs (1)
97FilePath = projectFullPath,
NuGet.Build.Tasks.Console (1)
MSBuildStaticGraphRestore.cs (1)
982FilePath = project.FullPath,
NuGet.CommandLine.XPlat (1)
Commands\Package\Update\PackageUpdateIO.cs (1)
83packageSpec.FilePath = project;
NuGet.Commands (4)
RestoreCommand\Utility\MSBuildRestoreUtility.cs (1)
887spec.FilePath = specItem.GetProperty("ProjectPath");
RestoreCommand\Utility\NoOpRestoreUtilities.cs (1)
209projectSpec.FilePath = null;
RestoreCommand\Utility\PackageSpecFactory.cs (1)
77FilePath = project.FullPath,
RestoreCommand\Utility\ToolRestoreUtility.cs (1)
33FilePath = projectFilePath,
NuGet.PackageManagement (1)
Projects\MSBuildNuGetProject.cs (1)
671packageSpec.FilePath = ProjectSystem.ProjectFileFullPath;
NuGet.ProjectModel (3)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (2)
164packageSpec.FilePath = name == null ? null : Path.GetFullPath(packageSpecPath); 173packageSpec.FilePath ??= packageSpec.RestoreMetadata?.ProjectJsonPath
PackageSpec.cs (1)
142FilePath = FilePath,
65 references to FilePath
NuGet.CommandLine.XPlat (12)
Commands\Package\Update\PackageUpdateCommandRunner.cs (5)
454logger.LogMinimal(Messages.Warning_AlreadyHighestVersion(package.Id, latestVersion.OriginalVersion!, project.FilePath), ConsoleColor.Yellow); 505Messages.Error_CannotUpgradeAutoReferencedPackage(project.FilePath, packageId), 538Messages.Unsupported_UpdatePackageWithDifferentPerTfmVersions(packageId, project.FilePath), 633Messages.Unsupported_UpdatePackageWithDifferentPerTfmVersions(dependency.Name, project.FilePath), 673if (projectPackageUpdates.TryGetValue(project.FilePath, out var packagesToUpdate))
Commands\Package\Update\PackageUpdateIO.cs (6)
81if (packageSpec.FilePath == virtualProjectPath) 190string.Equals(pair.SummaryRequest.Request.Project.FilePath, updatedPackageSpec.FilePath, StringComparison.OrdinalIgnoreCase)); 215_msbuildUtility.AddPackageReference(updatedPackageSpec.FilePath, libraryDependency, noVersion); 219_msbuildUtility.AddPackageReferencePerTFM(updatedPackageSpec.FilePath, libraryDependency, packageTfmAliases, noVersion); 464string.Equals(pair.SummaryRequest.Request.Project.FilePath, projectPath, StringComparison.OrdinalIgnoreCase));
Commands\Why\DependencyGraphFinder.cs (1)
106string projectDirectory = Path.GetDirectoryName(assetsFile.PackageSpec.FilePath)!;
NuGet.Commands (36)
RestoreCommand\DependencyGraphResolver.cs (4)
216CommandsEventSource.Instance.DependencyGraphResolver_CreateRestoreTargetGraphStart(_request.Project.FilePath, frameworkRuntimeDefinition.ToString()); 225CommandsEventSource.Instance.DependencyGraphResolver_CreateRestoreTargetGraphStop(_request.Project.FilePath, frameworkRuntimeDefinition.ToString(), wasRestoreTargetGraphCreationSuccessful ? 1 : 0, resolvedPackages.Count, unresolvedPackages.Count); 920CommandsEventSource.Instance.DependencyGraphResolver_ResolveDependencyGraphItemsStart(_request.Project.FilePath, pair.ToString()); 1403CommandsEventSource.Instance.DependencyGraphResolver_ResolveDependencyGraphItemsStop(_request.Project.FilePath, pair.ToString(), resolvedDependencyGraphItems.Count, restartCount, totalQueuedItemCount);
RestoreCommand\LockFileBuilder.cs (2)
85project.FilePath, 95project.FilePath,
RestoreCommand\RequestFactory\DependencyGraphSpecRequestProvider.cs (2)
186var rootPath = Path.GetDirectoryName(project.PackageSpec.FilePath); 188IReadOnlyList<IAssetsLogMessage> projectAdditionalMessages = GetMessagesForProject(restoreArgs.AdditionalMessages, project.PackageSpec.FilePath);
RestoreCommand\RequestFactory\RestoreArgs.cs (1)
195request.LockFilePath = ProjectJsonPathUtilities.GetLockFilePath(request.Project.FilePath);
RestoreCommand\RestoreCommand.cs (15)
207_request.Project.FilePath, 272if (CommandsEventSource.Instance.IsEnabled()) CommandsEventSource.Instance.RestoreCommand_BuildAssetsFileStart(_request.Project.FilePath); 281if (CommandsEventSource.Instance.IsEnabled()) CommandsEventSource.Instance.RestoreCommand_BuildAssetsFileStop(_request.Project.FilePath); 378telemetry.TelemetryEvent.AddPiiData(ProjectFilePath, _request.Project.FilePath); 462if (CommandsEventSource.Instance.IsEnabled()) CommandsEventSource.Instance.RestoreCommand_CalcNoOpRestoreStart(_request.Project.FilePath); 464if (CommandsEventSource.Instance.IsEnabled()) CommandsEventSource.Instance.RestoreCommand_CalcNoOpRestoreStop(_request.Project.FilePath); 593if (CommandsEventSource.Instance.IsEnabled()) CommandsEventSource.Instance.RestoreCommand_BuildRestoreGraphStart(_request.Project.FilePath); 607if (CommandsEventSource.Instance.IsEnabled()) CommandsEventSource.Instance.RestoreCommand_BuildRestoreGraphStop(_request.Project.FilePath); 725cacheFile.ProjectFilePath = _request.Project.FilePath; 793_request.Project.FilePath, 1328return pathComparer.Equals(cacheFile.ProjectFilePath, _request.Project.FilePath); 1821var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_ProjectDoesNotSpecifyTargetFrameworks, _request.Project.Name, _request.Project.FilePath); 1827_logger.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.Log_RestoringPackages, _request.Project.FilePath)); 1998var message = string.Format(CultureInfo.CurrentCulture, Strings.Log_ProjectDoesNotSpecifyTargetFrameworks, _request.Project.Name, _request.Project.FilePath); 2027_logger.LogInformation(string.Format(CultureInfo.CurrentCulture, Strings.Log_RestoringPackages, _request.Project.FilePath));
RestoreCommand\RestoreRequest.cs (1)
51RestoreOutputPath = Path.GetDirectoryName(Project.FilePath);
RestoreCommand\RestoreRunner.cs (2)
261if (CommandsEventSource.Instance.IsEnabled()) CommandsEventSource.Instance.RestoreRunner_RestoreProjectStart(request.Project.FilePath); 263if (CommandsEventSource.Instance.IsEnabled()) CommandsEventSource.Instance.RestoreRunner_RestoreProjectStop(request.Project.FilePath);
RestoreCommand\Utility\BuildAssetsUtils.cs (1)
419var dir = Path.GetDirectoryName(project.FilePath);
RestoreCommand\Utility\MSBuildRestoreUtility.cs (2)
190?? Path.GetFileNameWithoutExtension(result.FilePath); 906spec.TargetFrameworks.AddRange(GetTargetFrameworkInformation(spec.FilePath, projectStyle, items).Distinct());
RestoreCommand\Utility\SpecValidationUtility.cs (6)
47if (!projectsToSkip.Contains(projectSpec.FilePath)) 100files.Push(spec.FilePath); 162logger.Log(new RestoreLogMessage(LogLevel.Error, NuGetLogCode.NU1105, message) { FilePath = spec.FilePath, ProjectPath = spec.FilePath }); 303if (string.IsNullOrEmpty(spec.FilePath)) 308nameof(spec.FilePath));
NuGet.PackageManagement (3)
NuGetPackageManager.cs (2)
3376RestoreProgressReporter?.StartProjectUpdate(projectAction.RestoreResultPair.SummaryRequest.Request.Project.FilePath, filesToBeUpdated); 3386RestoreProgressReporter?.EndProjectUpdate(projectAction.RestoreResultPair.SummaryRequest.Request.Project.FilePath, filesToBeUpdated);
Projects\ProjectJsonNuGetProject.cs (1)
189metadata.ProjectJsonPath = packageSpec.FilePath;
NuGet.ProjectModel (14)
ExternalProjectReference.cs (1)
32: this(uniqueName, packageSpec?.Name, packageSpec?.FilePath, msbuildProjectPath, projectReferences)
JsonPackageSpecReader.Utf8JsonStreamReader.cs (10)
153throw FileFormatException.Create(ex, version, packageSpec.FilePath); 715throw FileFormatException.Create(ex, packageSpec.FilePath); 738packageSpec.FilePath), 739packageSpec.FilePath); 1451packageSpec.FilePath); 1459packageSpec.FilePath, 1468packageSpec.FilePath); 1476packageSpec.FilePath, 1485packageSpec.FilePath); 1515packageSpec.FilePath);
PackageSpec.cs (2)
46public string BaseDirectory => Path.GetDirectoryName(FilePath); 142FilePath = FilePath,
PackageSpecReferenceDependencyProvider.cs (1)
147Path = packageSpec?.FilePath,