diff --git a/FCS.Lib.Utility.csproj b/FCS.Lib.Utility.csproj
index b91d212..e068110 100644
--- a/FCS.Lib.Utility.csproj
+++ b/FCS.Lib.Utility.csproj
@@ -58,7 +58,11 @@
-
+
+ True
+ True
+ AssemblyInfo.tt
+
@@ -71,6 +75,10 @@
+
+ TextTemplatingFileGenerator
+ AssemblyInfo.cs
+
@@ -78,7 +86,6 @@
-
-
+ "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\TextTransform.exe" -out "$(ProjectDir)Properties\AssemblyInfo.cs" "$(ProjectDir)Properties\AssemblyInfo.tt"
\ No newline at end of file
diff --git a/Mogrify.cs b/Mogrify.cs
index d041736..a888490 100644
--- a/Mogrify.cs
+++ b/Mogrify.cs
@@ -185,14 +185,17 @@ namespace FCS.Lib.Utility
? (decimal?) null
: decimal.Divide(num, new decimal((long) 100));
}
+
public static T StringToEnum(string value)
{
- return (T) Enum.Parse(typeof(T), value, true);
+ return (T)Enum.Parse(typeof(T), value, true);
}
+
public static List StringToList(string value)
{
return StringToList(value, ";");
}
+
public static List StringToList(string value, string delimiter)
{
if (string.IsNullOrEmpty(value)) throw new ArgumentNullException(nameof(value));
diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs
index 7ae52f3..6996bbd 100644
--- a/Properties/AssemblyInfo.cs
+++ b/Properties/AssemblyInfo.cs
@@ -1,32 +1,21 @@
-using System.Reflection;
+// This code was generated by a tool. Any changes made manually will be lost
+// the next time this code is regenerated.
+
+using System.Reflection;
using System.Runtime.InteropServices;
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
[assembly: AssemblyTitle("FCS.Lib.Utility")]
-[assembly: AssemblyDescription("")]
+[assembly: AssemblyDescription("FCS.Lib.Utility")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("FCS")]
-[assembly: AssemblyProduct("FCS.Lib.Utility.Properties")]
-[assembly: AssemblyCopyright("Copyright © 2022")]
-[assembly: AssemblyTrademark("")]
+[assembly: AssemblyProduct("FCS.Lib.Utility")]
+[assembly: AssemblyCopyright("AGPL-3.0-or-later Copyright © FCS 2015-2022")]
+[assembly: AssemblyTrademark("© FCS")]
[assembly: AssemblyCulture("")]
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
+
[assembly: ComVisible(false)]
+[assembly: Guid("8D850197-78DB-4D16-A91F-E5BB6E8880A7")]
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("62c6650e-4bca-4fb5-87bf-219433459e9e")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.100")]
+[assembly: AssemblyVersion("1.0.1.0")]
+[assembly: AssemblyFileVersion("1.0.1.0")]
\ No newline at end of file
diff --git a/Properties/AssemblyInfo.tt b/Properties/AssemblyInfo.tt
new file mode 100644
index 0000000..5ebbad0
--- /dev/null
+++ b/Properties/AssemblyInfo.tt
@@ -0,0 +1,42 @@
+<#@ template debug="true" hostspecific="false" language="C#" #>
+<#@ output extension=".cs" #>
+<#
+ int major = 1;
+ int minor = 0; // Official == even, Preview == odd
+ int build = 1;
+ int revision = 0;
+
+ string version = String.Format("{0}.{1}.{2}.{3}", major, minor, build, revision);
+
+ if (minor % 2 == 1) // Preview build
+ {
+ // Auto-generate the build and revision
+
+ DateTime buildTime = DateTime.Now;
+
+ build = (1000 * (buildTime.Year % 100)) + buildTime.DayOfYear;
+ revision = (100 * buildTime.Hour) + buildTime.Minute;
+ version = String.Format("{0}.{1}.{2:00000}.{3:0000}", major, minor, build, revision);
+ }
+ #>
+// This code was generated by a tool. Any changes made manually will be lost
+// the next time this code is regenerated.
+
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+[assembly: AssemblyTitle("FCS.Lib.Utility")]
+[assembly: AssemblyDescription("FCS.Lib.Utility")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("FCS")]
+[assembly: AssemblyProduct("FCS.Lib.Utility")]
+[assembly: AssemblyCopyright("AGPL-3.0-or-later Copyright © FCS 2015-2022")]
+[assembly: AssemblyTrademark("© FCS")]
+[assembly: AssemblyCulture("")]
+
+
+[assembly: ComVisible(false)]
+[assembly: Guid("8D850197-78DB-4D16-A91F-E5BB6E8880A7")]
+
+[assembly: AssemblyVersion("<#= version #>")]
+[assembly: AssemblyFileVersion("<#= version #>")]
\ No newline at end of file