简体   繁体   English

我如何知道正在使用哪个版本的.net,以及如何更改它?

[英]How do I tell what version of .net i am compiling with, and how would I change it?

I'm using VS2010 Premium. 我正在使用VS2010 Premium。 I am compiling and running an application locally. 我正在本地编译和运行应用程序。 When i upload it a hosted server, I'm not seeing the results I am expecting. 当我将其上传到托管服务器时,看不到预期的结果。 I think this might be cause my the host not having the same version of .net I have. 认为这可能是因为我的主机没有相同版本的.net。 then are on .Net 2. 然后在.Net 2。

How can I tell what version of .Net I am compiling against? 我如何知道要针对哪个版本的.Net? How can I change that version to another (in this case .Net 2)? 如何将该版本更改为另一个版本(在本例中为.Net 2)?

Thanks, 谢谢,

对于每个项目,在项目属性屏幕的“应用程序”选项卡中,都有一个标记为“目标框架”的下拉列表...

You can also try Solution Properties from VSCommands 2010 extension. 您也可以尝试从VSCommands 2010扩展名解决方案属性。 It allows you to edit Target Framework, Reference Paths and other settings for all projects from one place (instead of going to properties screen of each project separately): 它允许您从一个位置编辑所有项目的目标框架,参考路径和其他设置(而不是分别转到每个项目的属性屏幕):

替代文字

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM