我试图使用VS2008 SP1和x64 XP运行NAnt 0.86b1。NAnt和VS2008(.NET 3.5) - 不支持Solution.sln文件的解决方案格式
我有一个基本的构建文件(下面)给出了错误 不支持文件'Solution.sln'的解决方案格式。
<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>
有其他人遇到这个问题?对此我找不到任何有用的东西。
+1使用msbuild任务。自从我开始自动化我们的构建之后,我一直在玩这两个版本,并且msbuild只是更快启动和运行。我也认为使用实际的解决方案/项目文件来运行构建的想法只是一个'好主意',因为它意味着所有的构建信息都集中在一个地方。 (而不是有VS和Nant配置的解决方案/项目。) – 2009-08-26 13:30:07