VS2013 wrote the program, under XP will say "not a legitimate Win32 program."
The program written in C + + can be set and run under XP, and the main "platform toolset" can be modified. Methods See:
http://blog.csdn.net/civilman/article/details/40109685
However, a program written in C #, there is no "platform toolset" option in the project properties, and the runtime will say that it is not a normal Win32 program.
The dotnet version is 2.0 and dotnet20 is installed under XP.
Excuse me, does anyone know how to get the C # program written by VS2013 to run under XP?
Did you build a X64 application?
Solved, made rookie mistake. Because the target machine is a virtual machine, too underestimated unclear, point to Vshost program, natural Error said will not be effective Win32 program.
Tested, the C # program written by VS2013, if it is dotnet 2.0 version, only need to install Dotnet2.0 on the target machine to run normally. Even without changing the target platform in the VS2013 build, still maintaining any Cpu, can run under XP normally.
Project properties, Target framework select XP-capable version
I had this situation last time I wrote a WinForm applet.
The workaround is to reduce the version of the. NET Framework. XP systems support up to 4.0, and many people do not upgrade on the machine, generally 3. You put down to 3.0 is OK.
XP to the. NET Formwork platform support to 4.0, if you want to run on XP, you need to return the class library to 4.0, if you are worried about other problems then the trouble, need to make a 4.0 version. The class library references, among other things, need to be checked.
Serial port is not available when the use of XP shared one-click Sharing software, guest referral mode is OK.
VS2013 wrote a C # program, under XP will say "not a legitimate Win32 program."