加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

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

发布时间:2020-12-16 04:19:10 所属栏目:asp.Net 来源:网络整理
导读:我没有设置构建我的ASP.NET MVC项目,它在本地工作正常.我将nant添加到tools文件夹并将其添加到版本控制. TeamCity获取我的更改并启动构建但它失败了. 我相信我正在使用最新版本的Nant,我已将.net框架3.5添加到nant.exe.config中.我在服务器上缺少什么,是的.n
我没有设置构建我的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.查看他的解决方案,看它是否适用于您的方案.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读