Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/OpenIPC.Viewer.App/ViewModels/SettingsPageViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,14 @@ public bool TryGoBack()
// Prefer the git-tag-derived InformationalVersion (set in Directory.Build.targets)
// over the numeric AssemblyVersion, which can't carry the -rc/-beta suffix.
// Strip any "+metadata" just in case the SDK still appended a commit hash.
// Read from this assembly, not GetEntryAssembly(): Android and iOS have no
// managed entry point, so that returned null and About fell through to the
// fallback. Every project gets the same git-derived version.
public string Version =>
Assembly.GetEntryAssembly()?.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion?.Split('+')[0]
?? Assembly.GetEntryAssembly()?.GetName().Version?.ToString()
typeof(SettingsPageViewModel).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion?.Split('+')[0]
?? typeof(SettingsPageViewModel).Assembly.GetName().Version?.ToString()
?? "0.1.0";
public string RepositoryUrl => "https://github.com/keyldev/openipc-viewer";
public string RepositoryUrl => "https://github.com/OpenIPC/viewer";

public SettingsPageViewModel(
UserSettingsService settings,
Expand Down
Loading