如何理解.Net正在为项目运行哪个版本? [英] How can I understand which version of .Net is running for a project?

查看:79
本文介绍了如何理解.Net正在为项目运行哪个版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我创建任何项目时,我可以理解我选择的.Net版本。





但是当我从sourcesafe运行一个项目时,我如何理解该项目运行的.Net版本是什么?



我正在使用visual studio 2008.

When I create any project i can understand which version of .Net I have selected.


But when I run a project from sourcesafe how can I understand which version of .Net is running for this project?

I am using visual studio 2008.

推荐答案

运行某些程序集的.NET Framework版本由目标.NET程序集的汇编版本。在运行时期间,可以使用以下属性检查此版本: http://msdn.microsoft.com/en-us/library/system.reflection.assembly.imageruntimeversion%28v=vs.110%29.aspx [ ^ ]。br />


-SA
The version of .NET Framework running some assembly is defined by the target .NET version of the compilation of this assembly. During runtime, this version can be examined using this property: http://msdn.microsoft.com/en-us/library/system.reflection.assembly.imageruntimeversion%28v=vs.110%29.aspx[^].

—SA


从解决方案资源管理器转到项目属性。在Application选项卡下,请参阅Target Framework。
Go to the Project Properties from Solution Explorer. Under Application tab, see the Target Framework.


这篇关于如何理解.Net正在为项目运行哪个版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆