fix: fix BuildInfo not being initialized
This commit is contained in:
parent
588afeec20
commit
24155a149c
2 changed files with 7 additions and 0 deletions
|
@ -29,4 +29,8 @@
|
|||
<Exec Command="../build_info.sh" IgnoreExitCode="false">
|
||||
</Exec>
|
||||
</Target>
|
||||
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="..\.version" LogicalName="version"/>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
|
@ -6,6 +6,9 @@ using Microsoft.AspNetCore.Mvc;
|
|||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Serialization;
|
||||
|
||||
// Read version information from .version in the repository root
|
||||
await BuildInfo.ReadBuildInfo();
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
var config = builder.AddConfiguration();
|
||||
|
|
Loading…
Reference in a new issue