Skip to content

Commit

Permalink
Do not add the SkiaSharp prefix to dependencies (#1331)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleibow authored Jun 11, 2020
1 parent 8791714 commit 5e10849
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cake/samples.cake
Original file line number Diff line number Diff line change
Expand Up @@ -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}'.");
Expand Down

0 comments on commit 5e10849

Please sign in to comment.