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