MSBuild 未编译 MSTest 项目(来自 TeamCity)
我使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
TeamCity 不完全支持 .NET 4.0。请检查脚本中的工具版本。
.NET 4.0 is not fully supported by TeamCity. Please check toolversion in your script.
配置构建代理来构建解决方案文件 (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.