Skip to content

Commit

Permalink
Update GetInformationalVersion to remove +
Browse files Browse the repository at this point in the history
  • Loading branch information
ricaun committed Nov 18, 2023
1 parent f4bba26 commit b35edb7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Enable `SignBinary` with `PathTooLong` path.
### Updated
- Create `PathTooLongUtils` to prevent `PathTooLongException`
### Fix
- Add `+` split with fix `GetInformationalVersion` with `+` in version. (Fix: #67)

## [1.7.1] / 2023-10-05
### Features
Expand Down
2 changes: 1 addition & 1 deletion ricaun.Nuke/Extensions/AssemblyExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static bool IsVersionPreRelease(this Project project)
/// </summary>
/// <param name="project"></param>
/// <returns></returns>
public static string GetInformationalVersion(this Project project) => project.GetFileVersionInfo()?.ProductVersion;
public static string GetInformationalVersion(this Project project) => project.GetFileVersionInfo()?.ProductVersion.Split('+').First();

/// <summary>
/// GetCompany => CompanyName
Expand Down
2 changes: 1 addition & 1 deletion ricaun.Nuke/ricaun.Nuke.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<PropertyGroup>
<PackageId>ricaun.Nuke</PackageId>
<Version>1.7.2-alpha</Version>
<Version>1.7.2-beta</Version>
</PropertyGroup>

<PropertyGroup>
Expand Down

0 comments on commit b35edb7

Please sign in to comment.