1 write to SourcePath
Microsoft.DotNet.Build.Tasks.Packaging (1)
PackageItem.cs (1)
18SourcePath = item.GetMetadata("FullPath");
16 references to SourcePath
Microsoft.DotNet.Build.Tasks.Packaging (16)
GeneratePackageReport.cs (3)
326Log.LogError($"Files {_targetPathToPackageItem[packageSpecificTargetPath].SourcePath} and {packageItem.SourcePath} have the same TargetPath {packageSpecificTargetPath}."); 363LocalPath = packageItem.SourcePath,
GetApplicableAssetsFromPackages.cs (3)
185Log.LogError($"Files {_targetPathToPackageItem[packageSpecificTargetPath].SourcePath} and {packageFile.SourcePath} have the same TargetPath {packageSpecificTargetPath}."); 207string pdbPath = Path.ChangeExtension(packageItem.SourcePath, ".pdb");
HarvestPackage.cs (3)
281Log.LogError($"Package contains two files with same targetpath: {livePackageItem.TargetPath}, items:{livePackageItem.SourcePath}, {existingitem.SourcePath}."); 402Log.LogMessage($"Using reference {livePackagePath} from last stable package {PackageId}/{PackageVersion} rather than the built reference {liveFile.SourcePath} since it is the same API version. Set <Preserve>true</Preserve> on {liveFile.SourceProject} if you'd like to avoid this..");
PackageItem.cs (7)
31IsDll = Path.GetExtension(SourcePath).Equals(".dll", StringComparison.OrdinalIgnoreCase); 32IsPlaceholder = NuGetAssetResolver.IsPlaceholder(SourcePath); 43if (SourcePath.Contains("**")) 45throw new ArgumentException($"Recursive wildcards \"**\" are not permitted in source paths for packages: {SourcePath}. Recursive directory may impact asset selection and we don't want to attempt to expand the wildcard since the build may not yet be complete."); 48string sourceFile = Path.GetFileName(SourcePath); 76if (_version == null && IsDll && File.Exists(SourcePath)) 78_version = VersionUtility.GetAssemblyVersion(SourcePath);