File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -278,11 +278,21 @@ public static class BuildSettings
278278 public static bool ShouldPublishToMyGet =>
279279 ! IsPreRelease || LABELS_WE_PUBLISH_ON_MYGET . Contains ( BuildVersion . PreReleaseLabel ) ;
280280 public static bool ShouldPublishToNuGet =>
281- ! IsPreRelease || LABELS_WE_PUBLISH_ON_NUGET . Contains ( BuildVersion . PreReleaseLabel ) ;
281+ ! IsPreRelease || LABELS_WE_PUBLISH_ON_NUGET . Contains ( BuildVersion . PreReleaseLabel ) && ! IsFractionalPreRelease ;
282282 public static bool ShouldPublishToChocolatey =>
283- ! IsPreRelease || LABELS_WE_PUBLISH_ON_CHOCOLATEY . Contains ( BuildVersion . PreReleaseLabel ) ;
283+ ! IsPreRelease || LABELS_WE_PUBLISH_ON_CHOCOLATEY . Contains ( BuildVersion . PreReleaseLabel ) && ! IsFractionalPreRelease ;
284284 public static bool ShouldPublishToGitHub =>
285- ! IsPreRelease || LABELS_WE_PUBLISH_ON_GITHUB . Contains ( BuildVersion . PreReleaseLabel ) ;
285+ ! IsPreRelease || LABELS_WE_PUBLISH_ON_GITHUB . Contains ( BuildVersion . PreReleaseLabel ) && ! IsFractionalPreRelease ;
286+ public static bool IsFractionalPreRelease
287+ {
288+ get
289+ {
290+ int dots = 0 ;
291+ foreach ( char c in BuildVersion . PreReleaseSuffix )
292+ if ( c == '.' ) dots ++ ;
293+ return dots > 1 ;
294+ }
295+ }
286296
287297 private static void ValidateSettings ( )
288298 {
You can’t perform that action at this time.
0 commit comments