Skip to content

Commit

Permalink
Version fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lolochristen committed Feb 19, 2024
1 parent 8d49fb8 commit 794d901
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/OpenLayers.Blazor.Demo/Shared/MainLayout.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@using System.Globalization
@using System.Diagnostics
@using System.Reflection
@inherits LayoutComponentBase

<div class="page">
Expand All @@ -8,8 +10,11 @@

<main>
<div class="top-row px-4">
@CultureInfo.CurrentCulture
V-@(typeof(Map).Assembly.GetName().Version)
Version @(((AssemblyFileVersionAttribute)Attribute.GetCustomAttribute(
typeof(Map).Assembly,
typeof(AssemblyFileVersionAttribute), false)
).Version)
(@CultureInfo.CurrentCulture)
<a href="https://github.com/lolochristen/OpenLayers.Blazor" target="_blank">GitHub</a>
</div>

Expand Down

0 comments on commit 794d901

Please sign in to comment.