c# - Running a .NET 4.5 program on XP with .NET 2.0 -


we have windows service written in c# 5.0 .net 4.5. code using of newer language features (async , await) , framework features (task.run, task.delay, iprogress, cancellationtoken, etc).

our product works fine on windows 7 , 8 when .net 4.5 installed. our problem is, need run on xp machine. if .net 4.5 could installed on windows xp, there's not enough space on machine anyway.

is there way can .net 4.5 application run on machine? i've looked compiling program native code using either mono aot compiler or ngen.exe, haven't had luck - don't think either of them achieve i'm trying do.

failing - we've thought of creating bootable preinstalled flash drive runs simple version of windows (like winpe?) our application installed, out of depth , wouldn't know start. idea? how approach this?

another option we've had try , install .net 4.0 , use async targeting pack.

or have other ideas? there way can build/compile/run .net 4.5 application (that makes use of .net 4.5 features) on xp machine running .net 2.0?

asyncbridge ms async targeting pack, available .net 3.5.

however, won't work .net 2.0; task parallel library (which defines task<t>) only available .net 3.5 (and built .net 4.0).

as mono, create standalone application includes relevant portions of framework, need create bundle, i'm not sure if supported on windows. mono --aot , ngen precompile application faster startup on local machine, don't remove need framework installed.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -