diff --git a/README.md b/README.md index effce8b..886cfcf 100644 --- a/README.md +++ b/README.md @@ -62,10 +62,11 @@ class Build : NukeBuild // The Required Attribute will automatically throw an exception if the // OctoVersionInfo parameter is not set due to an error or misconfiguration in Nuke. [Required] - // 'Framework = "net6.0"' is only required for net6.0 apps. + // 'Framework' selects which of the tool's targets to run. The tool ships + // net8.0, net9.0 and net10.0; set this to match your build project's target. [OctoVersion(UpdateBuildNumber = true, BranchParameter = nameof(Branch), - Framework = "net6.0")] + Framework = "net10.0")] readonly OctoVersionInfo OctoVersionInfo; Target PrintVersion => _ => _ diff --git a/build/Build.cs b/build/Build.cs index 598754b..ce85267 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -30,7 +30,7 @@ class Build : NukeBuild [Parameter("Whether to auto-detect the branch name - this is okay for a local build, but should not be used under CI.")] readonly bool AutoDetectBranch = IsLocalBuild; - [OctoVersion(BranchMember = nameof(BranchName), AutoDetectBranchMember = nameof(AutoDetectBranch), Framework = "net8.0")] + [OctoVersion(BranchMember = nameof(BranchName), AutoDetectBranchMember = nameof(AutoDetectBranch), Framework = "net10.0")] public OctoVersionInfo OctoVersionInfo; [Parameter("Branch name for OctoVersion to use to calculate the version number. Can be set via the environment variable " + CiBranchNameEnvVariable + ".", Name = CiBranchNameEnvVariable)] diff --git a/source/Cake.OctoVersion/Cake.OctoVersion.csproj b/source/Cake.OctoVersion/Cake.OctoVersion.csproj index c4b874c..2bc2ae3 100644 --- a/source/Cake.OctoVersion/Cake.OctoVersion.csproj +++ b/source/Cake.OctoVersion/Cake.OctoVersion.csproj @@ -5,7 +5,7 @@ true 0.0.0 true - 10 + latest diff --git a/source/OctoVersion.Core/OctoVersion.Core.csproj b/source/OctoVersion.Core/OctoVersion.Core.csproj index 0adca28..05381e4 100644 --- a/source/OctoVersion.Core/OctoVersion.Core.csproj +++ b/source/OctoVersion.Core/OctoVersion.Core.csproj @@ -9,7 +9,6 @@ Octopus.OctoVersion.Core true 1701;1702;NU5104 - 10 diff --git a/source/OctoVersion.Tool/OctoVersion.Tool.csproj b/source/OctoVersion.Tool/OctoVersion.Tool.csproj index 48a29df..73a370d 100644 --- a/source/OctoVersion.Tool/OctoVersion.Tool.csproj +++ b/source/OctoVersion.Tool/OctoVersion.Tool.csproj @@ -16,7 +16,7 @@ Octopus Deploy Pty. Ltd. https://github.com/OctopusDeploy/OctoVersion https://github.com/OctopusDeploy/OctoVersion - 10 + latest