3 writes to TargetPath
Microsoft.DotNet.Build.Tasks.Packaging (3)
PackageItem.cs (3)
25
TargetPath
= item.GetMetadata(nameof(TargetPath));
52
TargetPath
= Path.Combine(TargetPath, sourceFile);
56
TargetPath
= TargetPath.Replace('\\', '/');
24 references to TargetPath
Microsoft.DotNet.Build.Tasks.Packaging (24)
CreateTrimDependencyGroups.cs (1)
79
var packagePaths = packageItems.Select(pi => pi.
TargetPath
);
GeneratePackageReport.cs (7)
289
if (!packageItem.
TargetPath
.StartsWith("runtimes") && !packageItem.IsDll && !packageItem.IsPlaceholder)
294
if (String.IsNullOrWhiteSpace(packageItem.
TargetPath
))
296
Log.LogError($"{packageItem.
TargetPath
} is missing TargetPath metadata");
322
string packageSpecificTargetPath = AggregateNuGetAssetResolver.AsPackageSpecificTargetPath(packageSpecificItems.Key, packageItem.
TargetPath
);
336
_resolver.AddPackageItems(packageId, packageItems[packageId].Select(f => f.
TargetPath
));
345
.Select(pf => pf.
TargetPath
)
364
PackagePath = packageItem.
TargetPath
,
GetApplicableAssetsFromPackages.cs (6)
156
if (String.IsNullOrWhiteSpace(packageItem.
TargetPath
))
158
Log.LogError($"{packageItem.
TargetPath
} is missing TargetPath metadata");
181
string packageSpecificTargetPath = AggregateNuGetAssetResolver.AsPackageSpecificTargetPath(packageFiles.Key, packageFile.
TargetPath
);
194
_resolver.AddPackageItems(packageId, _packageToPackageItems[packageId].Select(f => f.
TargetPath
));
214
if (!String.IsNullOrEmpty(packageItem.
TargetPath
))
216
pdbItem.SetMetadata("TargetPath", Path.ChangeExtension(packageItem.
TargetPath
, ".pdb"));
HarvestPackage.cs (3)
279
if (livePackageFiles.TryGetValue(livePackageItem.
TargetPath
, out existingitem))
281
Log.LogError($"Package contains two files with same targetpath: {livePackageItem.
TargetPath
}, items:{livePackageItem.SourcePath}, {existingitem.SourcePath}.");
285
livePackageFiles.Add(livePackageItem.
TargetPath
, livePackageItem);
PackageItem.cs (7)
25
TargetPath = item.GetMetadata(nameof(
TargetPath
));
33
IsRef =
TargetPath
.StartsWith("ref/", StringComparison.OrdinalIgnoreCase);
49
if (!Path.GetExtension(
TargetPath
).Equals(Path.GetExtension(sourceFile), StringComparison.OrdinalIgnoreCase) ||
52
TargetPath = Path.Combine(
TargetPath
, sourceFile);
56
TargetPath =
TargetPath
.Replace('\\', '/');
58
int dirLength =
TargetPath
.LastIndexOf('/');
59
TargetDirectory = (dirLength > 0) ?
TargetPath
.Substring(0, dirLength) : String.Empty;