diff --git a/mRemoteNG/App/Info/GeneralAppInfo.cs b/mRemoteNG/App/Info/GeneralAppInfo.cs index 49dbdf55..c1ef1f16 100644 --- a/mRemoteNG/App/Info/GeneralAppInfo.cs +++ b/mRemoteNG/App/Info/GeneralAppInfo.cs @@ -18,12 +18,7 @@ namespace mRemoteNG.App.Info public const string UrlDocumentation = "https://mremoteng.readthedocs.io/en/latest/"; public static string ApplicationVersion = Application.ProductVersion; public static readonly string ProductName = Application.ProductName; - - public static readonly string Copyright = - ((AssemblyCopyrightAttribute)Attribute.GetCustomAttribute(Assembly.GetExecutingAssembly(), - typeof(AssemblyCopyrightAttribute), false)) - .Copyright; - + public static readonly string Copyright = ((AssemblyCopyrightAttribute)Attribute.GetCustomAttribute(Assembly.GetExecutingAssembly(), typeof(AssemblyCopyrightAttribute), false)).Copyright; public static readonly string HomePath = Path.GetDirectoryName(Assembly.GetEntryAssembly()?.Location); //public static string ReportingFilePath = ""; diff --git a/mRemoteNG/Properties/AssemblyInfo.cs b/mRemoteNG/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..6ac47631 --- /dev/null +++ b/mRemoteNG/Properties/AssemblyInfo.cs @@ -0,0 +1,22 @@ + +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Resources; + +// General Information +[assembly: AssemblyTitle("mRemoteNG")] +[assembly: AssemblyDescription("Multi-Remote Next Generation Connection Manager")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("mRemoteNG")] +[assembly: AssemblyProduct("mRemoteNG")] +[assembly: AssemblyCopyright("© 2023 mRemoteNG")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Version information +[assembly: AssemblyVersion("1.77.3.1754")] +[assembly: AssemblyFileVersion("1.77.3.1754")] +[assembly: NeutralResourcesLanguageAttribute("en-US")] +[assembly: AssemblyInformationalVersion("1.77.3 (Nightly Build: 1754)")] + diff --git a/mRemoteNG/Properties/AssemblyInfo.tt b/mRemoteNG/Properties/AssemblyInfo.tt new file mode 100644 index 00000000..508e6459 --- /dev/null +++ b/mRemoteNG/Properties/AssemblyInfo.tt @@ -0,0 +1,47 @@ +<#@ template debug="true" hostspecific="true" language="C#" #> +<#@ output extension=".cs" #> +<#@ import namespace="System.IO" #> +<#@ import namespace="System.Text.RegularExpressions" #> +<# + string output = File.ReadAllText(this.Host.ResolvePath("AssemblyInfo.cs")); + Regex pattern = new Regex("AssemblyVersion\\(\"(?\\d+)\\.(?\\d+)\\.(?\\d+)\\.(?\\d+)\"\\)"); + MatchCollection matches = pattern.Matches(output); + if( matches.Count == 1 ) + { + major = Convert.ToInt32(matches[0].Groups["major"].Value); + minor = Convert.ToInt32(matches[0].Groups["minor"].Value); + build = Convert.ToInt32(matches[0].Groups["build"].Value) + 1; + revision = Convert.ToInt32(matches[0].Groups["revision"].Value); + if( this.Host.ResolveParameterValue("-","-","BuildConfiguration") == "Release" ) + revision++; + } +#> + +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Resources; + +// General Information +[assembly: AssemblyTitle("mRemoteNG")] +[assembly: AssemblyDescription("Multi-Remote Next Generation Connection Manager")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("mRemoteNG")] +[assembly: AssemblyProduct("mRemoteNG")] +[assembly: AssemblyCopyright("© 2023 mRemoteNG")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Version information +[assembly: AssemblyVersion("<#= this.major #>.<#= this.minor #>.<#= this.revision #>.<#= this.build #>")] +[assembly: AssemblyFileVersion("<#= this.major #>.<#= this.minor #>.<#= this.revision #>.<#= this.build #>")] +[assembly: NeutralResourcesLanguageAttribute("en-US")] +[assembly: AssemblyInformationalVersion("<#= this.major #>.<#= this.minor #>.<#= this.revision #> (<#= this.channel #>: <#= this.build #>)")] + +<#+ + int major = 1; + int minor = 77; + int revision = 3; + int build = 1754; + string channel = "Nightly Build"; +#> \ No newline at end of file diff --git a/mRemoteNG/mRemoteNG.csproj b/mRemoteNG/mRemoteNG.csproj index 527fd25f..80f9dc7a 100644 --- a/mRemoteNG/mRemoteNG.csproj +++ b/mRemoteNG/mRemoteNG.csproj @@ -2,10 +2,10 @@ WinExe - net6.0-windows + net6.0-windows7.0 true Icons\mRemoteNG.ico - 1.77.3 + 1.77.3-dev Multi-protocol remote connections manager $([System.DateTime]::Now.Year) mRemoteNG Dev Team, 2010-2013 Riley McArdle, 2007-2009 Felix Deimel COPYING.TXT @@ -17,33 +17,52 @@ Header_dark.png {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} True + 7.0 + False + Multi-Remote Next Generation Connection Manager + https://github.com/mRemoteNG/mRemoteNG.git + git DEBUG false bin\x64\Debug\ + False + False + 7 - false + True bin\x64\Release\ false + False + 7 DEBUG;PORTABLE - false + False bin\x64\Debug Portable\ false + False + 7 PORTABLE - false + True bin\x64\Release Portable\ false + False + 7 + + + False + True + 7 @@ -96,6 +115,11 @@ True Language.resx + + True + True + AssemblyInfo.tt + True True @@ -215,6 +239,10 @@ + + TextTemplatingFileGenerator + AssemblyInfo.cs + Always @@ -478,4 +506,7 @@ + + + \ No newline at end of file