I'm trying to get NAnt 0.86b1 running with VS2008 SP1 and x64 XP.
I have a basic build file (below) which gives the error Solution format of file 'Solution.sln' is not supported.
<property name="nant.settings.currentframework" value="net-3.5" />
<target name="build" description="Full Rebuild" depends="clean,compile" />
<target name="clean" description="Cleans outputs">
<delete dir="bin" failonerror="false" />
<delete dir="obj" failonerror="false" />
</target>
<target name="compile" description="Compiles solution">
<solution configuration="debug" solutionfile="Solution.sln" />
</target>
Has anyone else experienced this problem? I can't find anything useful out there about this.
You'll notice that the docs indicate that NAnt's <solution
> task doesn't support solution files newer than VS2003.
I recommend using the <msbuild>
task from nantcontrib for all projects newer than VS2003.
Also, the .85 version of NAnt only supports framework versions up to 2.0. The purest way to get things working against the 3.5 framework is to use the .86-beta1 versions of NAnt. You'll then be able to use the <msbuild>
task against the 3.5 solution.