【.NET】ビルト時や実行時のCLRバージョン情報を取得する

user-pic
0 Clip to Evernote



.NET(C#)でCLRバージョン情報を取得する

・ビルド時のCLRバージョン情報取得
string clrVersionBuildtime = System.Reflection.Assembly. GetExecutingAssembly().ImageRuntimeVersion;

・実行時のバージョン情報取得
string clrVersionRuntime = System.Runtime.InteropServices.RuntimeEnvironment.GetSystemVersion();

【元】
@IT:.NET TIPS ビルド時および実行時のCLRバージョンを取得するには?
http://www.atmarkit.co.jp/fdotnet/dotnettips/278clrversion/clrversion.html


■関連記事


ドミノ・ピザ【PC向けサイト】 楽天トラベル株式会社 NEC Direct ・NECダイレクト