2014-08-13 10:39:27 +01:00
|
|
|
using System.Reflection;
|
|
|
|
using System.Diagnostics;
|
|
|
|
using System;
|
|
|
|
|
|
|
|
[assembly: AssemblyVersion ("2011.04.0.0")]
|
|
|
|
[assembly: AssemblyFileVersion ("2011.02.0.0")]
|
|
|
|
|
|
|
|
class X
|
|
|
|
{
|
|
|
|
public static int Main ()
|
|
|
|
{
|
|
|
|
Assembly executingAssembly = Assembly.GetAssembly (typeof(X));
|
|
|
|
FileVersionInfo fvi = FileVersionInfo.GetVersionInfo (executingAssembly.Location);
|
|
|
|
if (fvi.FileVersion != "2011.02.0.0")
|
|
|
|
return 1;
|
|
|
|
|
2016-08-03 10:59:49 +00:00
|
|
|
if (fvi.ProductVersion != "2011.02.0.0")
|
|
|
|
return 2;
|
|
|
|
|
2014-08-13 10:39:27 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|