【发布时间】:2012-03-09 02:25:28
【问题描述】:
我是 TeamCity 的新手,所以请温柔
我已经在构建服务器上设置了 teamcity。 .net 在通过 Visual Studio Team Builds 启动时构建工作,但在通过 Teamcity 启动时不构建工作(通过单击管理中的运行按钮以及签入)。
构建失败并出现加载类似的参考错误,例如.. 用户控件\ucCalendar.cs
(19, 11): error CS0246: The type or namespace name 'AxMSACAL' could not be found (are you missing a using directive or an assembly reference?)
followed by our own objects which have not been created due to other errors.
DAL\OrderItemCollection.cs
(31, 16): error CS0246: The type or namespace name 'OrderItem' could not be found (are you missing a using directive or an assembly reference?)
我理解这些错误的含义,但我显然遗漏了一些基本的东西,因为我不明白为什么它在通过 TFS/Team Build 在构建机器上构建时可以正常工作,但在 teamcity 上却失败了......
- 两者都使用相同的物理构建机器
- 两者都使用相同的来源:来自 TFS
- 两者都使用 MSBuild 构建解决方案
- 源包含 dll 等的外部引用目录
导致这些错误的 TeamCity 与 TFS/TB 有何不同?
任何指针都会非常有帮助。 干杯
【问题讨论】:
-
您使用什么构建运行器在 Teamcity 上启动构建?
-
@the_joric - 构建运行器是 MSBuild
-
而您只是运行您的解决方案?然后我建议转到您的构建代理文件夹并从那里运行 msbuild。您将看到缺少哪些文件,并能够相应地更改您的构建设置。
标签: c# msbuild continuous-integration teamcity