diff --git a/cake/samples.cake b/cake/samples.cake index 979531ee2f..9da2ea9f82 100644 --- a/cake/samples.cake +++ b/cake/samples.cake @@ -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}'.");