简体   繁体   中英

Compile C# Application for Windows XP

I try to compile a Program for Windows XP.

The problem I have now is, that the .exe Visual Studio creates is not executable under Windows XP.

It gives the message, that .NET Framework 4.5 is not installed . Because of that I compiled it for .NET 4.0, which is installed on the system.

My System:

  • Windows 8.1 64 Bit
  • Visual Studio 2013 Express (C#) / Visual Studio 2012 Express (C#) tried both

The other System:

  • Windows XP
  • .NET Framework 4 installed

My Configuration in VS:

  • Target Framework: ".NET Framework 4"
  • Target Platform: "x86"

I'm a little bit confused, please help.

I found out, why it didn's work xD

I used App.config to configure the applications database connection. But I just retransferred the .exe to the customer. In this configuration file was written the corresponding .NET Version. Cause of that the execution failed.

Thanks for your help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM