微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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.查看他的解决方案,看它是否适用于您的方案.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐