зеркало из https://github.com/mono/SkiaSharp.git
Do not add the SkiaSharp prefix to dependencies (#1331)
This commit is contained in:
Родитель
8791714683
Коммит
5e10849c89
|
@ -115,9 +115,13 @@ void CreateSamplesDirectory(DirectoryPath samplesDirPath, DirectoryPath outputDi
|
|||
if (!string.IsNullOrWhiteSpace(version)) {
|
||||
Debug($"Substituting project reference {relFilePath} for project {rel}.");
|
||||
var name = projItem.Name.Namespace + "PackageReference";
|
||||
// only add the suffix for our nugets
|
||||
if (packagingGroup.StartsWith("SkiaSharp") || packagingGroup.StartsWith("HarfBuzzSharp")) {
|
||||
version += suffix;
|
||||
}
|
||||
projItem.AddAfterSelf(new XElement(name, new object[] {
|
||||
new XAttribute("Include", packagingGroup),
|
||||
new XAttribute("Version", version + suffix),
|
||||
new XAttribute("Version", version),
|
||||
}));
|
||||
} else {
|
||||
Warning($"Unable to find version information for package '{packagingGroup}'.");
|
||||
|
|
Загрузка…
Ссылка в новой задаче