Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
実行時に EF のバージョンを取得する方法はありますか? に似たもの
Console.WriteLine(Environment.Version);
戻ります
4.0.30319.18034
アレクセイのアイデアを拡張すると、次のことができます
string version = typeof(DbSet).Assembly.GetName().Version.ToString();
関心のあるフレームワークからの任意のタイプのアセンブリの「バージョン」を出力します。
Console.Write( typeof(String).Assembly.GetName().Version);