Add versioning, release workflow and changelog
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c22d452720
commit
7c3657d015
11 files changed
+222
-11
No files matched your search
@@ -0,0 +1,15 @@
|
||||
using System.Reflection;
|
||||
|
||||
namespace Flypaper.Web;
|
||||
|
||||
public static class AppVersion
|
||||
{
|
||||
public static string Current { get; } = Read();
|
||||
|
||||
private static string Read()
|
||||
{
|
||||
var version = typeof(AppVersion).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion ?? "0.0.0-dev";
|
||||
var plus = version.IndexOf('+');
|
||||
return plus >= 0 && version.Length > plus + 8 ? version[..(plus + 8)] : version;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user