我用VS2010和目标对于.NET 2.0(VB.Net Windows窗体应用程序)
I used VS2010, and target for .Net 2.0 (VB.Net Windows Form application)
http://stackoverflow.com/questions/2171980/how-to-decide-what-is-the-net-target 我决定在2.0,因为我知道这将是确定的,如果用户有更高版本
http://stackoverflow.com/questions/2171980/how-to-decide-what-is-the-net-target I decided on 2.0 because I understood it will be OK if the users have higher version
我测试了我的XP应用程序与.net 2.0,正常工作。
I tested my app on XP with .Net 2.0, works fine.
我卸载NET 2.0 [看什么错误信息的用户可能会]
I uninstalled .Net 2.0 [to see what error message users might get]
[几个文件仍保留在C:\ WINDOWS \ Microsoft.Net \框架\ V2.0.50727但并非所有文件]
[a few files were still left in C:\Windows\Microsoft.Net\Framework\v2.0.50727 but not all files]
我安装了.NET 4 [。 。 。还需要安装Windows Installer 3.1和Windows图像处理组件,为pre-质量要求。 。 ]
I installed .Net 4 [. . . also needed to install Windows Installer 3.1, and Windows Imaging Component, as pre-requirments . . .]
但现在当我跑我的应用程序我得到的错误 - 无法找到一个版本的运行时运行此应用程序
but now when I run my app I get the error - "unable to find a version of the runtime to run this application"
所以我应该我建议我的客户?安装2.0?
so what should I recomend my clients? to install 2.0?
谢谢
Atara
更新:我要推荐我的XP用户安装.NET 3.5 SP1
Update: I am going to recommend my XP users to install .Net 3.5 SP1
您有两个选择:
推荐您的客户端上安装.NET 3.5 SP1(没有人安装.NET 2.0了) 目标.NET 4.0,并要求你的客户来安装.NET 4.0(这可能不被接受得非常好,特别是如果你的客户是一些大公司,其中公司的政策不允许它)