Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change .NET Framework Target of Compiled Executable

As Windows 8 doesn't contain .NET 2/3.5 by default, I would like to convert some .NET 2.0 compiled executables to .NET 4.5 without re-compiling them with VS 2012. Is there an utility for this task?

like image 290
Elmo Avatar asked Jan 15 '23 16:01

Elmo


1 Answers

You could just create or modify the app.config file, and set the supportedRuntime element to 4.5. This will cause the 4.0 CLR (which will use the 4.5 framework) to load the assembly, and does not require any change to the executable itself.

like image 166
Reed Copsey Avatar answered Jan 30 '23 22:01

Reed Copsey