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.
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.
相关文章推荐
- Fix: .Net 2.0 or 3.5 Setup Project Requires .Net Framework version 4.0
- .NET Framework 1.1、2.0、3.0、3.5、4.0各版本新增功能
- .NET Framework 1.1、2.0、3.0、3.5、4.0各版本新增功能
- 安装 Microsoft.NET Framework 2.0 出现问题 setup cannot continue because this version of the .net framework。。。
- Visual Studio 2008: Setup Project Targeting .NET Framework 2.0
- .NET Framework 1.1、2.0、3.0、3.5、4.0各版本新增功能
- .NET Framework 1.1、2.0、3.0、3.5、4.0各版本新增功能
- 在.net framework 2.0 环境下开发 .net framework 3.5 的程序
- BUG: Visual Studio .NET Setup Projects Execute Custom Action of Previous Version when Upgrading
- Bug: How to fix Exception Could not load file or assembly 'EntityFramework, Version=4.0.0.0[…]' or o
- ASP.NET AJAX Programmer's Reference: with ASP.NET 2.0 or ASP.NET 3.5
- ASP.NET AJAX Programmer's Reference : with ASP.NET 2.0 or ASP.NET 3.5
- Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools > Fix Project Properties.
- Android requires compiler compliance level 5.0 or 6.0. Found '1.8' instead. Please use Android Tools>Fix project Properties.
- ASP.NET AJAX Programmer's Reference : with ASP.NET 2.0 or ASP.NET 3.5
- Android requires compiler compliance level 5.0 or 6.0. Found '1.4' instead. Please fix project prope
- 在.net framework 2.0 环境下开发 .net framework 3.5 的程序
- 安装mysql时提示This application requires .NET framework 4.0.的解决办法
- 安装mysql时,提示This application requires .NET framework 4.0问题
- 安装mysql提示This application requires .NET framework 4.0