VS2013 wrote a C # program, under XP will say "not a legitimate Win32 program."

Source: Internet
Author: User

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."

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.