gpt4 book ai didi

msbuild - 构建错误 + 为 excel 2010 创建 VSTO 插件

转载 作者:行者123 更新时间:2023-12-04 23:04:05 25 4
gpt4 key购买 nike

我尝试使用 VS 2010 创建一个 excel 加载项。当我创建一个新项目 Excel 2010 加载项时,并尝试编译该解决方案。我收到一个错误,上面写着。

'Error  1   The "FindRibbons" task could not be loaded from the assembly            
'Microsoft.VisualStudio.Tools.Office.BuildTasks,
'Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. 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. DemoExcelAddIn1

我下载了一个已安装的 VS 2010 工具 for office runtime。但我找不到程序集“Microsoft.VisualStudio.Tools.Office.BuildTasks,

我该如何进行。谁能帮忙..

最佳答案

这看起来像 known issue sourced from MSDN forums - 您只需要更新您的 Microsoft.VisualStudio.Tools.Office.targets文件指向版本 11.0.0.0而不是版本 10.0.0.0 .
更新 MSBuild 目标文件

For those who encounter this problem, go to C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\OfficeTools and open the Microsoft.VisualStudio.Tools.Office.targets file.

Replace all 10.0.0.0 with 11.0.0.0.

关于msbuild - 构建错误 + 为 excel 2010 创建 VSTO 插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16376771/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com