Fixed the versioning

This commit is contained in:
tidusjar 2020-01-17 15:47:35 +00:00
commit 9946c80f3f
3 changed files with 14 additions and 4 deletions

View file

@ -6,10 +6,8 @@ namespace Ombi.Helpers
{
public static string GetRuntimeVersion()
{
var version = Assembly.GetEntryAssembly()
.GetCustomAttribute<AssemblyInformationalVersionAttribute>()
.InformationalVersion;
return version.Equals("1.0.0") ? "4.0.0-develop" : version;
ApplicationEnvironment app = PlatformServices.Default.Application;
return app.ApplicationVersion;
}
}
}

View file

@ -16,6 +16,7 @@
<PackageReference Include="Nito.AsyncEx" Version="5.0.0-pre-05" />
<PackageReference Include="Quartz" Version="3.0.7" />
<PackageReference Include="System.Security.Claims" Version="4.3.0" />
<PackageReference Include="Microsoft.Extensions.PlatformAbstractions" Version="1.1.0" />
</ItemGroup>
</Project>