0

我尝试在 Visual Studio 2010 SP1 环境中构建我的 Excel 2007 加载项。几个月前我已经编程过了。我已经安装了 Office 2007。我遇到了与此链接相同的问题:Build Error + Creating VSTO addin for excel 2010。在互联网搜索后,我看到其他人提出了相同的解决方案,并且似乎可行。我应用了相同的解决方案,但我仍然无法构建项目。现在问题说:

The "SetInclusionListEntry" task could not be loaded from the assembly
Microsoft.VisualStudio.Tools.Office.BuildTasks, Version=11.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a. Could not load file or assembly 
'Microsoft.VisualStudio.Tools.Office.BuildTasks, Version=11.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, that the assembly  
and all its dependencies are available, and that the task contains a public class that 
implements Microsoft.Build.Framework.ITask.

显然我仍然有与声明有关的问题。我已经下载并重新安装了 Office PIARedist.exe(主要互操作程序集)和 vstor_redist.exe(VSTO 运行时),期望更新 Microsoft.VisualStudio.Tools.Office.BuildTasks.dll 文件或我的 C:\Program Files (x86)\MSBuild \Microsoft\VisualStudio\v10.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets 文件正确。

4

0 回答 0