asp.net-mvc – 为什么Nant不与TeamCity合作?

我没有设置构建我的ASP.NET MVC项目,它在本地工作正常.我将nant添加到tools文件夹并将其添加到版本控制. TeamCity获取我的更改并启动构建但它失败了.

我相信我正在使用最新版本的Nant,我已将.net框架3.5添加到nant.exe.config中.我在服务器上缺少什么,是的.net框架是安装在服务器上的,因为如果我在那里手动构建和部署asp.net mvc应用程序吗?

构建文件如下:


<target name="compile" description="Compiles using the AutomatedDebug Configuration">
    <msbuild project="Tolt.Sims.sln" />
</target>

这是错误

BUILD Failed Failed to initialize the 'Microsoft .NET Framework 2.0' (net-2.0) target framework.
Property evaluation Failed. Expression: ${path::combine(sdkinstallroot,'bin')} ^^^^^^^^^^^^^^ Property 'sdkinstallroot' has not been set.
For more information regarding the cause of the build failure,run the build again in debug mode. Try 'nant -help' for more information

解决方法

如果您使用的是NAnt的测试版(目前这是获得支持目标大于2.0框架的唯一方法),您可能会遇到注册表问题.类似的问题是 reported by Tim Barcz.

事情几乎归结为NAntContrib(msbuild任务的提供者)指向2.0版本的msbuild.查看他的解决方案,看它是否适用于您的方案.

相关文章

ASP.NET与IIS是紧密联系的,由于IIS6.0与IIS7.0的工作方式的...
在之前的ASP.NET是如何在IIS下工作的这篇文章中介绍了ASP.NE...
这篇文章主要讲解了“WPF如何实现带筛选功能的DataGrid”,文...
本篇内容介绍了“基于WPF如何实现3D画廊动画效果”的有关知识...
Some samples are below for ASP.Net web form controls:(fr...
问题描述: 对于未定义为 System.String 的列,唯一有效的值...