类型或命名空间名称“KasraDll”;无法找到(您是否缺少 using 指令或程序集引用?)
我有一个在我的计算机上构建的项目。但是当我想使用 TFS 创建团队构建时,我收到此错误:
找不到类型或命名空间名称“KasraDll”(您是否缺少 using 指令或程序集引用?)
I have a project that is built in my computer. but when I want create a team build with TFS i am getting this error:
The type or namespace name 'KasraDll' could not be found (are you missing a using directive or an assembly reference? )
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否已将 KasraDll 检查到源代码管理中? TFS 构建需要一种方法来解析对此文件的引用。 TFS 模式和实践 讨论将第 3 方文件检查到源代码管理中。
或者,如果这是您创建的程序集,您可以将其设置为程序集引用(对构建的二进制文件的引用),您应该将其设置为项目引用(在解决方案中添加对项目的引用)。
Have you checked the KasraDll into source control? The TFS Build will need a way to resolve the reference to this file. The TFS Patterns and Practices discusses checking 3rd Party files into source control.
Alternatively, if this is an assembly you created, you may have it set as an assembly reference (a reference to the built binary), you should have it set as a project reference instead (adding a reference to the project in the solution).