views:

144

answers:

1

Hi Guys, I have just updated my nant script to compile my .net framework 4 solution. And I got the above error while generating commonassemblyinfo.cs in my solution. I visited msdn website and also added

<NetFx40_LegacySecurityPolicy enabled="true" />

in my web.config under runtime->configuration. But that didn't solve my problem.

Can anyone please suggest what am I missing?

+1  A: 

Are you using the latest NAnt build? The 0.91 release is in alpha, and supports building .NET 4 applications.

I had tried just updating the NAnt 0.86 configuration to support .NET 4, but got the error you showed. I downloaded the most recent NAnt build, and it worked. Despite being alpha, it seems stable, so far anyway.

There is an open request for folks to test the new build and report bugs.

Grant Palin
Yeah I using old nant, I think I may need to upgrade my nant to use .net 4.
alice7