使 vb.net 应用程序能够在任何安装了 .net 的 PC 上运行 [英] Make vb.net app capable of running on any PC with .net installed

查看:28
本文介绍了使 vb.net 应用程序能够在任何安装了 .net 的 PC 上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,如果我创建了一个依赖于 .net 2.0 的应用程序,并尝试在带有 .net 4.5 的 PC 上运行它,它不起作用.(它说我必须安装 .net 2.0 和 3.5)

For example, if I create an application with .net 2.0 dependency and I try to run it on a PC with .net 4.5, it doesn't work. (It says I have to install .net 2.0 and 3.5)

有什么解决办法吗?

推荐答案

查看 MSDN 上的这个说明如何在 app.config 文件中设置 .

Look at this instruction on MSDN how to set <supportedRuntime> in your app.config file.

http://msdn.microsoft.com/en-us/library/jj152935(v=vs.110).aspx

在您的情况下,在您的 app.config

In your case add <supportedRuntime version="v4.0"/> in your app.config

这篇关于使 vb.net 应用程序能够在任何安装了 .net 的 PC 上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆