如何让我的 VB.net 程序在 Windows XP 上运行?

Posted

技术标签:

【中文标题】如何让我的 VB.net 程序在 Windows XP 上运行?【英文标题】:How to allow my VB.net program to run on Windows XP? 【发布时间】:2018-04-10 00:24:19 【问题描述】:

我想知道是否可以使用 VB.net 让我的程序在 Windows XP 中运行。每次我尝试它都会出现一个错误,上面写着:“这不是 Win32 应用程序” 我找到了应用程序的 Windows 设置在哪里,但我似乎无法理解 XP 的 supportOS Id 是什么。根据它说的设置 <!-- A list of the Windows versions that this application has been tested on and is designed to work with. Uncomment the appropriate elements and Windows will automatically selected the most compatible environment. -->

然后它会列出具有支持的操作系统 ID 的 Windows 版本。

我还在末尾找到了一个部分,上面写着:<!-- Enable themes for Windows common controls and dialogs (Windows XP and later) --> 有没有办法可以将 Windows XP 添加到此列表中?

【问题讨论】:

您使用的是哪个版本的 .net 框架? xp电脑上是否安装了.net框架? ***.com/questions/17499351/… @KenTucker 我使用的是 4.5.1 版本,应该预装在 XP SP3 上吗? @GreenApplications : .NET 4.5.1 绝对没有预装在 XP 机器上。 Windows XP 远远早于 .NET 4.5.1。作为比较:.NET 4.5.1 于 2013 年 10 月发布,而 Windows XP 在 2014 年 4 月(发布 12 年后)正式弃用。您会发现在 XP 机器上预装的最高 .NET 版本是 .NET 1.0,但是您仍然可以安装一些较新的版本(尽管 .NET 4.0 是唯一的版本) 官方支持)。 @KenTucker : 实际上 .NET 4.0 在 Windows XP 上也得到了官方支持。 【参考方案1】:

我需要将框架更改为 4.0 Client Profile 或 4.0 Full,以使我的应用程序能够在 Windows XP 上运行。感谢所有帮助过的人!

【讨论】:

以上是关于如何让我的 VB.net 程序在 Windows XP 上运行?的主要内容,如果未能解决你的问题,请参考以下文章

如何使用 VB.net 获取 Windows 控制台应用程序的文本?

如何在其他 PC 上发布 VB.net 应用程序,因为我的 PC 成为使用 sql server 的服务器主机

VB.NET 如何在visual studio中制作滑入/滑出申请表(程序)?

如何在 VB.NET 中为基于 Windows 的应用程序创建带有自动建议的文本框?

求大神指点vs2012里的vb.net 编写的windows 服务怎么启动呀

如何在 vb .net 中获取任何已连接打印机的型号