在 VS 2008 中强制安装程序需要 .NET 4.0
去年春天,我们强制安装程序需要 .NET 3.5 来解决一些兼容性问题。现在.NET 4.0 已经出来了。我的理解是,如果用户安装4.0,他们不一定也安装3.5。
尽管我们在警告消息中指示用户安装 3.5,但 .NET 下载页面上的默认选择是 4.0。因此,当用户安装我们的软件时,他们被指示获取 3.5,但他们不小心下载了 4.0,并且应用程序抱怨。
简单的解决方案是让安装程序需要 4.0,因为它向后兼容,但是,我们仍在使用 VS 2008;当我编辑需求时,.NET 版本列表最多只达到 3.5。
有没有办法让安装程序需要 4.0?
仅仅为了更改配置文件中的两个文本字符而升级到 VS 2010 似乎很遗憾。
注意:我并不是试图在代码中针对 .NET 4.0,只需确保它是已安装的版本。
Last spring we forced our installer to require .NET 3.5 to resolve some compatibility issues. Now .NET 4.0 is out. My understanding is that if a user installs 4.0, they do not necessarily also install 3.5.
Although we instruct the users to install 3.5 in our warning message, the default selection on the .NET download page is 4.0. So, when a user installs our software, they are instructed to get 3.5, they accidentally download 4.0, and the app complains.
The simple solution would be to have the installer require 4.0 since it is backwards compatible, however, we're still using VS 2008; when I edit requirements, the list of .NET version only goes up to 3.5.
Is there a way to have the installer require 4.0?
It seems a shame to upgrade to VS 2010 solely to change two characters of text in a config file.
NOTE: I am not trying to target .NET 4.0 in my code, just ensure that it is the installed version.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为在您的 app.config 中添加以下内容会更容易,这应该确保您的应用程序运行,无论用户安装 3.5 还是 4,并停止您的应用程序抱怨。
I think it would be easier to add the following in your app.config instead, which should ensure that your app runs whether the user installs 3.5 or 4 and stop your app complaining.
您可以添加引导程序。
You could add a bootstrapper.