VS 安装项目 - .Net Framework 3.5 或更高版本的启动条件
我需要为我的应用程序创建一个安装项目。我需要添加启动条件以确保用户在其计算机上安装了 .Net Framework 3.5 或更高版本。有办法这样做吗?
我尝试在VS 2005、2008和2010中创建安装项目。我还尝试将启动条件下的版本设置为3.5,然后在记事本中打开项目文件将“允许更高版本”设置为true,但没有成功。
当我的系统上安装了 .Net Framework 4.0 时,安装程序仍然要求我下载 .Net Framework 3.5。
任何帮助将不胜感激。
谢谢, 曼吉特
I need to create a setup project for my application. I need to add launch condition to make sure user has .Net framework 3.5 or higher installed on his machine. Is there a way to do so?
I have tried creating the setup project in VS 2005, 2008 and 2010. I have also tried setting up the version in launch condition to be 3.5 and then opened the project file in notepad to set "Allow Later Versions" to true, without any success.
The setup still asks me to download .Net framework 3.5 when I have .Net framework 4.0 installed on my system.
Any help will be deeply appreciated.
Thanks,
Manjeet
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为您不想手动编辑项目文件。我认为“允许更高版本”标志适用于您的应用程序,而不适用于 .net 框架;不是吗?
如果您按照 这个教程应该可以正常工作。我以前从未见过你的问题。我认为你一定做错了什么,否则它应该可以正常工作。
I think you don't want to edit project file manually. "Allow Later versions" flag is for your application not for .net framework I think; isn't it?
If you do as per this tutorial it should work fine. I've never seen your problem before. I think you must have done something wrong, other wise it should work fine.
我也遇到了同样的问题。我发现
- Visual studio 2008开始使用
ToolsVersion
属性来定位框架- Framework 4.0 不包括 Framework 3.5
在我的例子中,我安装了 3.5(以及 4.0),并且设置现在工作正常。
I was also experiencing the same problem. I found that
- Visual studio 2008 started to use
ToolsVersion
attribute to target the framework- Framework 4.0 doesn't include framework 3.5
In my case, I installed 3.5 (along with 4.0) and the setup is working fine now.