i am developing a winform application with VS 2015 professional. i tried to run the application on Win XP, but i have got the message that: *.exe is not a valid Win32 application.
i searched for a solution but i did not find one for c#/winform application. i read the other questions here about this issue, but they solved another project types. only c/c++ projects. like this question for example:
xxxxxx.exe is not a valid Win32 application
any ideas?
Edit 1 i already build it for x86 system but this did not solve the problem.
Edit 2: contains the solution too
i re-install visual studio to get the .Net 4 in the list, as it suggested in the answer below.
the try only to install the .Net 4 without re-installing the visual studio was not possible, even if the list contains "Install Other Frameworks", if one has already a higher version than 4.
so after i uninstall the VS, i deleted all higher version of .Net, and re-install the visual studio and the .Net 4 was listed as in the Screenshot below.