From 36d8ed28a5721837cb2633545d28231c4b289544 Mon Sep 17 00:00:00 2001 From: Richard Webb Date: Tue, 4 Nov 2025 15:42:53 +0000 Subject: [PATCH] fix 'Pattern discard is not allowed for union case that takes no data' errors when building the build script in newer .NET versions These union cases don't contain any data, so there is nothing to discard. --- build/scripts/CommandLine.fs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build/scripts/CommandLine.fs b/build/scripts/CommandLine.fs index 940c09a..eb5c641 100644 --- a/build/scripts/CommandLine.fs +++ b/build/scripts/CommandLine.fs @@ -25,11 +25,11 @@ with interface IArgParserTemplate with member this.Usage = match this with - | Clean _ -> "clean known output locations" - | Build _ -> "Run build" - | Test _ -> "Runs build then tests" - | Release _ -> "runs build, tests, and create and validates the packages shy of publishing them" - | Publish _ -> "Runs the full release" + | Clean -> "clean known output locations" + | Build -> "Run build" + | Test -> "Runs build then tests" + | Release -> "runs build, tests, and create and validates the packages shy of publishing them" + | Publish -> "Runs the full release" | SingleTarget _ -> "Runs the provided sub command without running their dependencies" | Token _ -> "Token to be used to authenticate with github"