我正在将我的构建从TFS 2008升级到TFS 2010,同时,我使用升级模板来使用TFS 2008构建定义。我在TFS 2008上运行以前运行的机器上安装了构建控制器和构建代理。该机器仍然安装了TFS 2008构建服务。
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets" />
<Import Project="$(MSBuildExtensionsPath32)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets" />
<Import Project="$(MSBuildExtensionsPath32)\ExtensionPack\MSBuild.ExtensionPack.tasks"/>
似乎第一个导入目标导致以下错误,但我无法弄清楚如何解决它(文件路径来自在TFS 2010上运行升级模板的计算机。
C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation
.Build.targets (278): The "Microsoft.TeamFoundation.Build.Tasks.GetBuildProperties"
task could not be loaded from the assembly C:\Program Files\Microsoft Team Foundation
Server 2010\Tools\\Microsoft.TeamFoundation.Build.Tasks.dll. Could not load file or
assembly 'file:///C:\Program Files\Microsoft Team Foundation Server 2010\Tools\
Microsoft.TeamFoundation.Build.Tasks.dll' or one of its dependencies. The system cannot
find the file specified. Confirm that the <UsingTask> declaration is correct, that the
assembly and all its dependencies are available, and that the task contains a public
class that implements Microsoft.Build.Framework.ITask.'
我尝试了here中提供的解决方案,但无济于事。
非常感谢任何帮助。
答案 0 :(得分:0)
您需要确保导入指向2008 Microsoft.TeamFoundation.Build.Tasks.dll
所以$(MSBuildExtensionsPath32) == what?
发送错误消息:
C:\Program Files\Microsoft Team Foundation
Server 2010\Tools\
使用/ verbosity:diagnostic运行构建以查看变量是什么,在团队构建rsp文件中更正它们。