1 write to SourcePath
Microsoft.DotNet.Build.Tasks.Packaging (1)
PackageItem.cs (1)
18
SourcePath
= item.GetMetadata("FullPath");
16 references to SourcePath
Microsoft.DotNet.Build.Tasks.Packaging (16)
GeneratePackageReport.cs (3)
326
Log.LogError($"Files {_targetPathToPackageItem[packageSpecificTargetPath].
SourcePath
} and {packageItem.
SourcePath
} have the same TargetPath {packageSpecificTargetPath}.");
363
LocalPath = packageItem.
SourcePath
,
GetApplicableAssetsFromPackages.cs (3)
185
Log.LogError($"Files {_targetPathToPackageItem[packageSpecificTargetPath].
SourcePath
} and {packageFile.
SourcePath
} have the same TargetPath {packageSpecificTargetPath}.");
207
string pdbPath = Path.ChangeExtension(packageItem.
SourcePath
, ".pdb");
HarvestPackage.cs (3)
281
Log.LogError($"Package contains two files with same targetpath: {livePackageItem.TargetPath}, items:{livePackageItem.
SourcePath
}, {existingitem.
SourcePath
}.");
402
Log.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)
31
IsDll = Path.GetExtension(
SourcePath
).Equals(".dll", StringComparison.OrdinalIgnoreCase);
32
IsPlaceholder = NuGetAssetResolver.IsPlaceholder(
SourcePath
);
43
if (
SourcePath
.Contains("**"))
45
throw 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.");
48
string sourceFile = Path.GetFileName(
SourcePath
);
76
if (_version == null && IsDll && File.Exists(
SourcePath
))
78
_version = VersionUtility.GetAssemblyVersion(
SourcePath
);