diff --git a/TShockAPI/Properties/AssemblyInfo.cs b/TShockAPI/Properties/AssemblyInfo.cs index a220c10d..c473fadf 100644 --- a/TShockAPI/Properties/AssemblyInfo.cs +++ b/TShockAPI/Properties/AssemblyInfo.cs @@ -33,7 +33,7 @@ using System.Runtime.InteropServices; // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] - -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] \ No newline at end of file +// [assembly: AssemblyVersion("1.0.*")] + +[assembly: AssemblyVersion("2.1.0.0617")] +[assembly: AssemblyFileVersion("2.1.0.0617")] \ No newline at end of file diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 63110124..7fe102f7 100755 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -20,6 +20,7 @@ using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Net; +using System.Reflection; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Content; using Terraria; @@ -31,7 +32,7 @@ namespace TShockAPI [APIVersion(1, 4)] public class TShock : TerrariaPlugin { - public static readonly Version VersionNum = new Version(2, 1, 0, 6); + public static readonly Version VersionNum = Assembly.GetExecutingAssembly().GetName().Version; public static readonly string VersionCodename = "Forgot to increase the version."; public static readonly string SavePath = "tshock"; @@ -323,7 +324,7 @@ namespace TShockAPI if (Commands.HandleCommand(TSPlayer.Server, text)) e.Handled = true; } - + } private void GetData(GetDataEventArgs e) diff --git a/TShockAPI/TShockAPI.csproj b/TShockAPI/TShockAPI.csproj index 22e958fe..8938288a 100644 --- a/TShockAPI/TShockAPI.csproj +++ b/TShockAPI/TShockAPI.csproj @@ -12,6 +12,21 @@ TShockAPI v4.0 512 + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true true @@ -86,6 +101,28 @@ Resources.Designer.cs + + + False + Microsoft .NET Framework 4 %28x86 and x64%29 + true + + + False + .NET Framework 3.5 SP1 Client Profile + false + + + False + .NET Framework 3.5 SP1 + false + + + False + Windows Installer 3.1 + true + + @@ -94,6 +131,11 @@ "$(SolutionDir)\myass.bat" + + + + +