I am trying to use nant 0.90 with a visual studio 2008, .net 3.5 project. The nant script is being called by team city. Nothing too complex here.
<?xml version="1.0"?>
<project name="IPSA System" default="build" basedir=".">
<property name="nant.settings.currentframework" value="net-3.5"/>
<msbuild project="FS.IPSA.WebAdmin\FS.IPSA.WebAdmin.csproj">
<arg value="/property:TeamOutPath=Release\FS.IPSA.WebAdmin" />
<property name="TeamOutPath" value="Release\FS.IPSA.WebAdmin" />
</msbuild>
</project>
The problem I'm having is that nant is insisting on calling the .net 2.0 complier rather than the 3.5. I thought that putting the nant.settings.currentframework
value into the script was supposed to force the framework version. This doesn't seem to be the case. What else might be causing the problem?