How do I get nant to build projects that target the .NET 4.0 Framework?
I had similar issue for 4.5, this solved my issue:
http://www.donnfelker.com/nant-sdkinstallroot-has-not-been-set/
I have a 64 bit machine but .net is installed as 32 bit. The sdkInstallRoot is not able to find the correct path. I checked in my registry editor to find the correct path and replaced the entry in nant.exe.config.
I replaced:
with this: