MSBuild 未编译 MSTest 项目(来自 TeamCity)

发布于 2024-08-17 08:20:48 字数 186 浏览 6 评论 0原文

我使用 MSBuild 10 编译包含 MSTest 项目的 .Net 解决方案文件。我在 TeamCity 中使用 MSBuild。

MSBuild 似乎没有构建测试项目,因此没有创建测试项目 dll 供 MSTest 使用,尽管其他项目编译正常。

我需要做什么才能编译测试项目还是应该做其他事情?

谢谢,

Im using MSBuild 10 to compile a .Net solution file which includes a MSTest project. Im using MSBuild from within TeamCity.

MSBuild doesnt seem to be building the test project and so the test project dll isnt created for use by MSTest, although the other projects are compiled OK.

What do I need to do to get the test project to compile or should I be doing something else?

Thanks,

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

野味少女 2024-08-24 08:20:48

TeamCity 不完全支持 .NET 4.0。请检查脚本中的工具版本。

.NET 4.0 is not fully supported by TeamCity. Please check toolversion in your script.

好久不见√ 2024-08-24 08:20:48

配置构建代理来构建解决方案文件 (sln) 应该足够了。解决方案文件应包含测试项目并且所有内容都会被编译。
询问这是否不能回答您的问题。

It should be enough to configure the build agent to build off the solution file (sln). The solution file should include the test project and everything gets compiled.
Ask if this does not answer your question.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文