For debugging purposes, you could use the AssemblyTitle (or any other attribute you like)
First you add it to your csproj file
<PropertyGroup>
<AssemblyTitle Condition="'$(Configuration)' == 'debug'">My Assembly $([System.DateTime]::Now)</AssemblyTitle>
</PropertyGroup>
Then in your Blazor code (MainLayout seems a good choice) you can extract the value and display it:
<div class="info-panel">@BuildInfo</div>
@code {
string BuildInfo;
#if DEBUG
protected override void OnInitialized()
{
Assembly curAssembly = typeof(Program).Assembly;
BuildInfo = $"{curAssembly.GetCustomAttributes(false).OfType<AssemblyTitleAttribute>().FirstOrDefault().Title}";
}
#endif
}
If you don't like the idea of using an existing attribute, you could create a custom attribute - but that seems over the top to me.