ビルドした日時を表示する簡単なやり方。バージョン情報代わりに使える。
実行ファイルの更新日時を読み取ることで表示可能。
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; // 追加 namespace AutoVersionChange { class Program { static void Main(string[] args) { var info = new System.IO.FileInfo(Application.ExecutablePath); Console.WriteLine("{0}", info.CreationTime); } } }