Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
13240137763@163.com committed Mar 9, 2020
1 parent 96cd88c commit f1fd236
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions nfi/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@ class Program
static void Main(string[] args)
{
#if false
if (args.Length == 0)
{
Console.Write("");
return;
}
var fi = new FileInfo(args[0]);
if (!fi.Exists)
{
Console.Write("");
return;
}
//if (args.Length == 0)
//{
// Console.Write("");
// return;
//}
//var fi = new FileInfo(args[0]);
//if (!fi.Exists)
//{
// Console.Write("");
// return;
//}
var f = @"D:\SVNRoot\src\Client\win\teacherMoveOffice\zntbkt\bin\Debug\zntbkt.exe";
#else
var f = args[0];
#endif
var ver = Assembly.LoadFile(f).GetName().Version;
var v = $"V{ver.Major}.{ver.MajorRevision}.{ver.MinorRevision}";
var v = $"V{ver.Major}.{ver.MajorRevision}.{ver.Build}";
Console.Write(v);
}
}
Expand Down

0 comments on commit f1fd236

Please sign in to comment.