Versioning

This commit is contained in:
Paul Schneider 2022-04-17 20:36:28 +01:00
commit 5c1a49811a
15 changed files with 112 additions and 97 deletions

View file

@ -5,6 +5,8 @@ using isnd.Data;
using System.Linq;
using isnd.ViewModels;
using Unleash;
using System.Reflection;
namespace isnd.Controllers
{
@ -23,6 +25,7 @@ namespace isnd.Controllers
public IActionResult Index()
{
return View(new HomeIndexViewModel{
PkgCount = _dbContext.Packages.Count(),
UnleashClient = _unleashĈlient
@ -39,6 +42,11 @@ namespace isnd.Controllers
public IActionResult Contact()
{
ViewData["Message"] = "Your contact page.";
var ass = typeof(isn.Abstract.Resource).GetType().Assembly;
var attrs = ass.GetCustomAttributes(true);
// ass.GetCustomAttributes(true);
System.Reflection.AssemblyFileVersionAttribute v = (AssemblyFileVersionAttribute)
GetType().Assembly.GetCustomAttribute(typeof(AssemblyFileVersionAttribute));
return View();
}
@ -56,3 +64,6 @@ namespace isnd.Controllers
}
}
}