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