开发者

how can i find my .net frame work version

开发者 https://www.devze.com 2022-12-25 19:00 出处:网络
how can i find the version of my .net frame w开发者_运维知识库orklook in the web.config <add assembly=\"System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35\"/&

how can i find the version of my .net frame w开发者_运维知识库ork


look in the web.config

<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>


if you need to check it programmatically:

        Microsoft.Win32.RegistryKey registryKey;

        registryKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\NET Framework Setup\NDP\", false );

        string[] installedNetVersions = registryKey.GetSubKeyNames();


System.Environment.Version will give you the CLR version your application is running under - this may not be the same as the ASP.NET version.

0

精彩评论

暂无评论...
验证码 换一张
取 消