I was trying to run NUnit with framework 4.5 (I have VS2010 and VS2012 installed on my machine).
So I tried the old approach by editing the .exe.config file for nunit
I noted the framework version as 4.5.50709. However this failed at runtime; saying that the specified version isn't available and prompt to download and install.
Quick internet check states the registry is the place to look HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP
No 4.5 fwk folder. Strange - so I repaired the framework 4.5 installation. Still the same. Finally I delve into the 4.0 key I find
InstallPath = %WINDOWS%\Microsoft.Net\Framework64\v4.0.30319
TargetVersion = 4.0.0
Version = 4.5.50709
Hmmm looks like 4.5 has overridden 4.0. So I modified the .exe.config
<supportedRuntime version="v4.0.30319" />
This worked. Nunit now reports that it is running on v4.5
- Why does 4.5 install in this manner ?
- It seems to be 'redirect'ing - Is this because 4.5 is an in-place update ? If yes, why doesn't specifying 4.5.50709 not work ?