c# - creating exe for another computers in visual studio 2012 -


i created small windows form app in visual studio 2012 using c#, build in release mode,the exe not working on computers

with default settings of new c# project on vs2012, generate exe cannot run on xp. default .net framework target vs2012 .net 4.5, version of .net not available xp.

but else that's important, marks target windows version in exe header. field has been set version 4.00, version number of windows nt , windows 95 long .net has been around. though doesn't run on old windows versions.

new .net 4.5 compilers, set target version 6.00, vista version. rather important step ahead, running program that's marked 4.00 on newer version turns on couple of app-compat shims. important 1 that's caused plenty of trouble shim programs don't know aero, in particularly fat window borders. program lied windows when ask window size. you'll faked size, smaller 6 pixels.

the side-effect of change program instantly fail on xp, before find out required .net version isn't installed. windows reject exe.

change .net framework target setting of project 4.0 or less create program run on xp.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -