After installing .Net 4.5 Beta, the output of my Nant build fails with:
because as answered in this question ExtensionAttribute was moved to mscorlib.dll from System.Core.dll. So the nant build is incorporating .net4.5 assemblies despite me specifying the target framework in the nant build script as follows:
<property name="nant.settings.currentframework" value="net-4.0" />
Under Visual Studio the build works fine (produces a .dll that doesn't require .Net 4.5). But I need the build to work with nant because we have "old-schoolers" as well as build processes that use nant.
What do i need to add to my nant build script to make the build actually stick to 4.0?