如何更改“.Net Framework 4 Client Profile”到“.Net Framework 4” [英] How to change ".Net Framework 4 Client Profile" to ".Net Framework 4"

查看:230
本文介绍了如何更改“.Net Framework 4 Client Profile”到“.Net Framework 4”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用某人的笔记本电脑在Visual Studio 2010中对我的项目进行编码,当我尝试使用VS2012将其运行到我的PC时,它给了我这个错误





无法找到类型或命名空间名称''Student''(您是否缺少using指令或汇编参考?)



我也尝试使用VS2010但它给了我同样的错误我尝试在互联网上搜索错误解决方案是将.Net Framework 4客户端配置文件更改为.Net Framework 4.



你能告诉我我在哪里可以更改它。

I was coding my project in Visual Studio 2010 using someone''s Laptop and when I try to run it to my PC using VS2012 it gives me this error


The type or namespace name ''Student'' could not be found (are you missing a using directive or an assembly reference?)

I also try to use VS2010 but it gives me the same error wen I try to search the error on internet the solution is to change .Net Framework 4 Client Profile to .Net Framework 4.

Can you please show me where exactly can I go to change it.

推荐答案

1)在解决方案资源管理器窗口中选择你的项目

2)右键单击并选择项目中的属性

3)应该打开一个新的选项卡,从应用程序选项卡开始,您应该看到Target Framework下拉...从顶部开始的第3行。

4)在那里更改你的目标框架......它应该预先填充.net框架work 4客户端配置文件...将其更改为.net Framework 4,然后点击ctrl + s或确保保存更改。



这就是你如何更改项目的目标框架。
1) Select your project in the solution explorer window
2) Right click and select properties on the project
3) A new tab should open that starts on the Application Tab, you should see Target Framework drop down...its in the 3rd row from the top.
4) Change your Target framework there...It should pre-populate with .net framework 4 client profile...change it to just .net Framework 4 and then hit ctrl + s or make sure you save your changes.

Thats how you change the target framework for a project.


这篇关于如何更改“.Net Framework 4 Client Profile”到“.Net Framework 4”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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