2 writes to Path
NuGet.Packaging (2)
ContentModel\Infrastructure\Parser.cs (2)
91
Path
= path,
211
Path
= path
31 references to Path
dotnet (1)
ToolPackage\ToolPackageDownloader.cs (1)
249
var newItem = new LockFileItem(item.
Path
);
Microsoft.DotNet.Build.Tasks.Packaging (8)
NuGetAssetResolver.cs (8)
59
compileItems.Items.Select(ci => ci.
Path
) :
78
runtimeItems.Items.Select(ci => ci.
Path
) :
105
int dirLength = contentItem.
Path
.LastIndexOf(Path.AltDirectorySeparatorChar);
113
yield return contentItem.
Path
.Substring(0, dirLength);
215
thisPackageCompileItems.Items.Select(ci => AsPackageSpecificTargetPath(referencePackageId, ci.
Path
)) :
232
yield return AsPackageSpecificTargetPath(packageId, packageAsset.
Path
);
301
yield return AsPackageSpecificTargetPath(packageId, packageAsset.
Path
);
318
yield return AsPackageSpecificTargetPath(packageId, packageAsset.
Path
);
Microsoft.DotNet.Build.Tasks.TargetFramework (1)
TargetFrameworkResolver.cs (1)
61
string? bestTargetFrameworkString = contentCollection.FindBestItemGroup(criteria, _configStringPattern)?.Items[0].
Path
;
Microsoft.DotNet.PackageValidation (12)
ApiCompatRunnerExtensions.cs (4)
59
displayString: options.IsBaselineComparison ? Resources.Baseline + " " + leftContentItems[leftIndex].
Path
: null,
80
displayString ??= item.
Path
;
100
return new MetadataInformation(Path.GetFileName(item.
Path
), item.
Path
, package.PackagePath, assemblyReferences, displayString);
ContentItemEqualityComparer.cs (3)
16
public bool Equals(ContentItem? x, ContentItem? y) => string.Equals(x?.
Path
, y?.
Path
);
18
public int GetHashCode(ContentItem obj) => obj.
Path
.GetHashCode();
Package.cs (3)
102
RuntimeSpecificAssets = RuntimeAssets.Where(t => t.
Path
.StartsWith("runtimes")).ToArray();
156
new ReadOnlyCollection<ContentItem>(items.Where(t => !t.
Path
.StartsWith("runtimes")).ToArray()) :
172
new ReadOnlyCollection<ContentItem>(items.Where(t => t.
Path
.StartsWith("runtimes")).ToArray()) :
Validators\BaselinePackageValidator.cs (1)
93
.Where(t => t.
Path
.StartsWith("runtimes"))
Validators\CompatibleFrameworkInPackageValidator.cs (1)
58
contentItemCollection.Load(compileAssetsQueue.SelectMany(a => a.Item2).Select(a => a.
Path
));
NuGet.Commands (5)
RestoreCommand\ContentFiles\ContentFileUtils.cs (3)
94
if (!entryMappings.ContainsKey(item.
Path
))
96
entryMappings.Add(item.
Path
, new List<ContentFilesEntry>());
97
languageMappings.Add(item.
Path
, codeLanguage);
RestoreCommand\Utility\LockFileUtils.cs (2)
697
var newItem = new LockFileItem(item.
Path
);
988
results.Add(new LockFileRuntimeTarget(item.
Path
)
NuGet.Packaging (4)
ContentModel\ContentItem.cs (1)
148
return
Path
;
ContentModel\ContentItemCollection.cs (1)
266
string? relatedFileExtensionsProperty = GetRelatedFileExtensionProperty(contentItem.
Path
, assets);
PackageCreation\Authoring\PackageBuilder.cs (1)
767
itemsWithFrameworkMissingPlatformVersion.Add(item.
Path
);
Rules\InvalidUndottedFrameworkRule.cs (1)
237
warnPaths.Add(item.
Path
);