zoukankan      html  css  js  c++  java
  • Fix: .Net 2.0 or 3.5 Setup Project Requires .Net Framework version 4.0

    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:

    The Setup Requires the .Net Framework version 4.0

    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 :

    1. Double click on the dependencies of the setup project.
    2. Click on the .Net Framework
    3. And you will see the Property window will get enabled.
    4. Change the Version property to your desired .net Framework ( in my case 3.5).
    5. and build your setup again.

    作者:Angelo Lee
    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利.
  • 相关阅读:
    php 类文件加载 Autoloader
    windows下配置nginx+php
    crontab 定时调度
    PHP 常见语法 集合
    php socket
    tengine + mysql + nginx + php
    yii2 [行为] behaviors 拦截器
    .htaccess 语法以及应用
    nginx 安装
    Nginx HTTP负载均衡和反向代理配置
  • 原文地址:https://www.cnblogs.com/yefengmeander/p/2887619.html
Copyright © 2011-2022 走看看