-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathVersionProvider.cs
More file actions
31 lines (25 loc) · 944 Bytes
/
VersionProvider.cs
File metadata and controls
31 lines (25 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Reflection;
using cloudscribe.Versioning;
using cloudscribe.Web.Common;
namespace cloudscribe.Core.SimpleContent.CompiledViews.Bootstrap5
{
public class VersionProvider : IVersionProvider
{
public string Name { get { return "cloudscribe.Core.SimpleContent.CompiledViews.Bootstrap5"; } }
public Guid ApplicationId { get { return new Guid("f93067b4-919d-4910-acd1-4b3b1c210ecf"); } }
public Version CurrentVersion
{
get
{
var version = new Version(2, 0, 0, 0);
var versionString = typeof(CloudscribeCommonResources).Assembly.GetCustomAttribute<AssemblyFileVersionAttribute>().Version;
if (!string.IsNullOrWhiteSpace(versionString))
{
Version.TryParse(versionString, out version);
}
return version;
}
}
}
}