Windows窗体应用程序在Windows XP上安装? [英] Windows form app to install on windows xp?

查看:106
本文介绍了Windows窗体应用程序在Windows XP上安装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了一个Windows窗体应用程序,并希望安装它非Windows XP。一旦我点击.exe文件,它说c\document\window \不是一个有效的32位应用程序

请有人帮我解决这个错误。



在此先感谢。



我尝试了什么:



使用System;

使用System.Collections.Generic;

使用System.ComponentModel;

使用System.Data;

使用System.Drawing;

使用System.Linq;

使用System.Text;

使用System.Threading.Tasks;

使用System.Windows.Forms;



命名空间测试

{

公共部分课程表格1:表格

{

public Form1()

{

InitializeComponent();

}



private void label1_Click(object sender,EventArgs e)

{



}



priv ate void button1_Click(object sender,EventArgs e)

{

Form2 frm2 = new Form2();

frm2.Show();

//this.Close();



}

}

}

i made a windows form application and want to install it non windows xp. as soon as i click the .exe file it says "c\document\window\ is not an valid 32 bit application "
please somebody help me to resolve this error.

Thanks in Advance.

What I have tried:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace test
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void label1_Click(object sender, EventArgs e)
{

}

private void button1_Click(object sender, EventArgs e)
{
Form2 frm2 = new Form2();
frm2.Show();
//this.Close();

}
}
}

推荐答案

您将什么内容复制到另一台机器上?如果不是.EXE和所有.DLL都与你的项目的bin文件夹相关联,是的,它不是一个有效的可执行文件。



此外,您的应用程序的目标是什么版本的.NET Framework?进入项目属性以查找它。 Windows XP仅受.NET 4.0及更低版本支持。如果您的项目针对的是.NET 4.5及更高版本,则无法在Windows XP上运行。
What did you copy over to the other machine? If it wasn't the .EXE and all the .DLL's associated with it from the bin folder of your project, yeah, it's not a valid executable.

Also, what version of the .NET Framework did your application target? Go into your project Properties to find that. Windows XP is only supported by .NET 4.0 and below. If your project is targeting .NET 4.5 and above it will not work on Windows XP.


这篇关于Windows窗体应用程序在Windows XP上安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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