Skip to content

Commit

Permalink
[Add] version to MainLayout
Browse files Browse the repository at this point in the history
  • Loading branch information
sam.gerene committed Dec 5, 2021
1 parent 93bf764 commit 7a3e498
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
16 changes: 15 additions & 1 deletion reqifviewer/Shared/MainLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<div class="text-center">
<RadzenFooter>
<ChildContent>
<RadzenLabel Text=@($"Copyright © RHEA System S.A. 2021") />
<RadzenLabel Text=@($"Copyright © RHEA System S.A. 2021 - version {version}") />
</ChildContent>
</RadzenFooter>
</div>
Expand All @@ -75,4 +75,18 @@

bool sidebarExpanded = false;
bool bodyExpanded = true;
string version = string.Empty;

/// <summary>
/// Method invoked when the component is ready to start, having received its
/// initial parameters from its parent in the render tree.
/// Override this method if you will perform an asynchronous operation and
/// want the component to refresh when that operation is completed.
/// </summary>
protected override void OnInitialized()
{
this.version = Assembly.GetExecutingAssembly().
GetCustomAttribute<AssemblyInformationalVersionAttribute>().
InformationalVersion;
}
}
7 changes: 1 addition & 6 deletions reqifviewer/reqifviewer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net5.0</TargetFramework>
<Company>RHEA System S.A.</Company>
<Title>reqifviewer</Title>
<Version>0.0.1</Version>
<Version>0.0.2</Version>
<Description>Web Application to inspect ReqIF files</Description>
<Copyright>Copyright © RHEA System S.A.</Copyright>
<Authors>Sam Gerené</Authors>
Expand All @@ -24,14 +24,9 @@
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="5.0.12" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="5.0.12" PrivateAssets="all" />
<PackageReference Include="Radzen.Blazor" Version="3.13.3" />
<PackageReference Include="ReqIFSharp" Version="5.0.0-rc1" />
<PackageReference Include="System.Net.Http.Json" Version="5.0.0" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="ReqIFSharp" Version="5.0.0-rc1" />
</ItemGroup>

<ItemGroup>
<Folder Include="wwwroot\images\" />
</ItemGroup>
Expand Down

0 comments on commit 7a3e498

Please sign in to comment.