使用TFS2010构建VS2008解决方案时出错
使用 TFS2010 构建 VS2008 解决方案时出现以下错误。
error MSB4019: The imported project "C:\Program Files\MSBuild\Microsoft\AssemblyInfoTask\Microsoft.VersionNumber.Targets" was not found.
Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
有人可以帮我吗?
谢谢。
I'm getting following error when building my VS2008 Solution with TFS2010.
error MSB4019: The imported project "C:\Program Files\MSBuild\Microsoft\AssemblyInfoTask\Microsoft.VersionNumber.Targets" was not found.
Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
Can someone help me with that?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来 MSBuild 找不到 AssemblyInfoTask\Microsoft.VersionNumber.Targets,一个可能的问题是生成服务不会对自定义任务进行递归搜索来下载它们。看看您的问题是否与此类似:
http://social.msdn.microsoft.com/forums/en-US/tfsbuild/thread/dfefb86a-a969-4545-9f0d-7e764fd49861
Aaron Hallberg 介绍了如何配置构建服务在此处递归搜索自定义任务:
http://blogs.msdn.com/b/aaronhallberg/archive/2008/02/12/modifying-the-configurationfolderpath-recursiontype-in-team-build-2008.aspx
好运气!
Looks like MSBuild could not find AssemblyInfoTask\Microsoft.VersionNumber.Targets, one possible problem is that the build service does not do a recursive search for the custom tasks to download them. See if your problem is similar to this one:
http://social.msdn.microsoft.com/forums/en-US/tfsbuild/thread/dfefb86a-a969-4545-9f0d-7e764fd49861
Aaron Hallberg describes how to configure the build service to search for the custom tasks recursively here:
http://blogs.msdn.com/b/aaronhallberg/archive/2008/02/12/modifying-the-configurationfolderpath-recursiontype-in-team-build-2008.aspx
Good luck!