Skip to content

Commit

Permalink
refactor: update LibraryInfo LibraryFullVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
WeihanLi committed Oct 9, 2024
1 parent 0755004 commit 91efb7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WeihanLi.Common/Helpers/ApplicationHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static LibraryInfo GetLibraryInfo(Assembly assembly)
;
return new LibraryInfo()
{
FullVersion = assemblyInformation.InformationalVersion,
LibraryFullVersion = assemblyInformation.InformationalVersion,
LibraryVersion = informationalVersionSplit[0],
LibraryHash = informationalVersionSplit.Length > 1 ? informationalVersionSplit[1] : string.Empty,
RepositoryUrl = repositoryUrl
Expand Down Expand Up @@ -243,7 +243,7 @@ public class LibraryInfo
public required string LibraryVersion { get; init; }
public required string LibraryHash { get; init; }
public required string RepositoryUrl { get; init; }
public string FullVersion { get => _fullVersion ?? LibraryVersion; init => _fullVersion = value; }
public string LibraryFullVersion { get => _fullVersion ?? LibraryVersion; init => _fullVersion = value; }
}

public class RuntimeInfo
Expand Down

0 comments on commit 91efb7a

Please sign in to comment.