我们在 TFS 构建的解决方案中添加了许多 Office 插件项目,现在它正在崩溃。我们正在使用 Visual Studio 和 TFS 2008 (SP1)。已添加 4 个项目,每个项目一个用于以下目标...
- 词 2003
- 词 2007
- Excel 2003
- Excel 2007
构建日志报告以下...
C:\Program Files\MSBuild\Microsoft.VisualStudio.OfficeTools2.targets(116,9): error MSB4062: The "GenerateAndPersistAppInfoTask" task could not be loaded from the assembly Microsoft.VisualStudio.Tools.Applications.Hosting, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. Could not load file or assembly 'Microsoft.VisualStudio.Tools.Applications.Hosting, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, and that the assembly and all its dependencies are available.
Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0.dll 存在于服务器上,并在 GAC 中正确安装。还安装了 Visual Studio Tools for Office (2005 & 3.0)。如果远程到服务器并运行 Visual Studio,我可以重新创建这些插件之一并成功编译它。
救命,卡住了!