Added automated assembly versioning and now the server prints out its version. So cool.

This commit is contained in:
spoogemonster
2011-05-14 17:56:13 +00:00
parent 8f5a59e86d
commit 4724868a8b
4 changed files with 9 additions and 7 deletions

View File

@@ -32,5 +32,5 @@ 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" )]
[assembly: AssemblyVersion( "0.1.*" )]
[assembly: AssemblyFileVersion( "0.1.*" )]

View File

@@ -32,5 +32,5 @@ 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")]
[assembly: AssemblyVersion("0.1.*")]
[assembly: AssemblyFileVersion("0.1.*")]

View File

@@ -22,7 +22,9 @@ namespace SS3d_server
Console.WriteLine("Server -> Can not start server"); //Not like you'd see this, haha. Perhaps later for logging.
Environment.Exit(0);
}
Console.WriteLine("Server -> Ready");
string strVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
Console.WriteLine("Server Version " + strVersion + " -> Ready");
while(main.server.Active)
{

View File

@@ -32,5 +32,5 @@ 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")]
[assembly: AssemblyVersion("0.1.*")]
[assembly: AssemblyFileVersion("0.1.*")]