您的位置:首页 > 产品设计 > UI/UE

Fix: .Net 2.0 or 3.5 Setup Project Requires .Net Framework version 4.0

2012-01-11 19:21 561 查看
Sorry again folks again I was MIA with loads and loads of work. trust me i have more than 30 drafts which i started and never got time to finish. anyway coming to the point this morning i was trying to deploy a windows service project using the setup project
templates in visual studio 2010, and when i tried to install it on client machine i got the following message:





But I’m pretty sure that i had the project targeted to .net Framework 3.5 SP1, but still it was requiring .net 4.0. as usual i did a Google search and found

this article with the trick to resolve it.

actually it was the dependencies in the setup project causing the issue, it was still targetting 4.0 even though my application targets .net 3.5 and by default VS2010 set the dependency to .Net 4.0.

if you have this issue all you have to do is the following :

Double click on the dependencies of the setup project.
Click on the .Net Framework
And you will see the Property window will get enabled.
Change the Version property to your desired .net Framework ( in my case 3.5).
and build your setup again.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐