hibernating-rhinos/rhino-esb — pull request #60 by jberezanski (2012-09-04 16:25:08+00:00)
Title: Make sure .NET 4.0 is targeted when 4.5 is present

"4.0" is not a valid value of TargetFrameworkVersion. Apparently, an invalid value is silently ignored and causes msbuild to target the newest framework installed on the machine.

On a computer with Visual Studio 2012 installed, .NET 4.5 is targeted. Unfortunately, 4.5 drops support for XP/2003. The generated Rhino.ServiceBus.Host.exe specifies a minimum OS of Vista/2008 in its PE header and refuses to load on XP/2003.

When "V4.0" is specified as TargetFrameworkVersion, .NET 4.0 is correctly targeted and the exe works on XP/2003.