I’m curious if it’s possible to use Nant to target the .NET 4.5 using the C# 5.0 compiler. As of right now, the latest version only states support for .NET 4.0.
I tried downloading the source and building the .sln with msbuild after installing the .net 4.5 framework, but that yielded a large number of errors.
Might be best to hit NAnt mailing list with your findings. It’s not that active, but NAnt will definitely get an update to support the new framework. Problem is, Microsoft usually changes file locations with new release and registry keys pointing to those files change as well, so it’s not really possible to support it before there’s an actual release from Microsoft. for tests.
I have it running currently, targeting 4.5. In
NAnt.exe.config, change the<startup>node:I’ve also added a new
<framework>node (copy of net-4.0 except for reference assemblies):