Skip to content

Commit

Permalink
Fixing assembly version validation for dotnet build.
Browse files Browse the repository at this point in the history
  • Loading branch information
joelday committed Oct 3, 2024
1 parent 30c4473 commit c53d22e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,12 @@ Task("build-debugger")
Task("build")
.Does(() =>
{
var assemblyVersion = version + ".0";
var parsedVersion = System.Version.Parse(version);

var patch = parsedVersion.Build & 0xFFFF0000;
var build = parsedVersion.Build & 0x0000FFFF;

var assemblyVersion = parsedVersion.Major.ToString() + "." + parsedVersion.Minor.ToString() + "." + patch.ToString() + "." + build.ToString();
Information("Assembly version: " + assemblyVersion);

// TODO: Do release builds when running CI.
Expand Down

0 comments on commit c53d22e

Please sign in to comment.