[英]How to check the framework of asp.net website using web.config file
如何使用web.config文件检查asp.net网站的框架。实际上我在asp.net中有网站,我想使用web.config文件检查asp.net文件的框架,我也想知道这个网站是由Visual Studio 2008或Visual Studio 2010等编辑器制作的。
In most cases it should be in the Web.Config under following categories 在大多数情况下,它应该位于Web.Config中的以下类别下
Check following tags : 检查以下标签:
"targetFramework="4.5" /> “ targetFramework =” 4.5“ />
httpRuntime targetFramework="4.5" />" httpRuntime targetFramework =“ 4.5” />“
If it is a web application You can right click and check the properties. 如果是Web应用程序,则可以右键单击并检查属性。
.Net Framework - Visual Studio .Net Framework-Visual Studio
2.0 - 2005 2.0-2005
3.0-3.5 - 2008 3.0-3.5-2008
4.0 - 2010 4.0-2010
4.5 - 2012-2013 4.5-2012-2013
Normally the information you are looking for is in the project file (*. vbproj
) rather than in Web.config
. 通常,您要查找的信息在项目文件(*
vbproj
)中,而不是在Web.config
。 This is common for any type of project you create in Visual Studio. 这对于在Visual Studio中创建的任何类型的项目都是常见的。
If you look into your *. 如果您查看您的*。
vbproj
(open this in notepad) file you'll see ToolsVersion
property and a TargetFrameworkVersion
tag. vbproj
(在记事本中打开)文件,您将看到ToolsVersion
属性和TargetFrameworkVersion
标记。
ToolsVersion
- gives you the MSBuild
version that's used to build your project TargetFrameworkVersion
- gives you the .Net framework used for this project ToolsVersion
为您提供用于构建项目的MSBuild
版本TargetFrameworkVersion
为该项目提供.Net框架
And, ProductVersion
will give you the Visual Studio version. 并且,
ProductVersion
将为您提供Visual Studio版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.