将Excel加载项从VS2008转换为VS2010:项目不再编译 [英] Convert Excel Add-In from VS2008 to VS2010: The project no more compile

查看:63
本文介绍了将Excel加载项从VS2008转换为VS2010:项目不再编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将我的Excel加载项从VS2008迁移到VS2010。为此,我按照
将Office解决方案迁移到.NET Framework 4 (http://msdn.microsoft.com/en-us/library/ee207231.aspx)中的说明进行操作。

I migrated my Excel Add-In from VS2008 to VS2010. For this, I followed the instructions from Migrating Office Solutions to the .NET Framework 4 (http://msdn.microsoft.com/en-us/library/ee207231.aspx).

现在,我的代码无法编译,我收到以下错误消息:

Now, my code doesn't compile and a I get the following error message:

"FindRibbons""任务意外失败。

System.IO.FileNotFoundException:无法加载文件或程序集"LbtMenu_2010,Version = 1.0.0.7,Culture = neutral,PublicKeyToken = null"或其依赖项之一。系统找不到指定的文件。

文件名:'LbtMenu_2010,Version = 1.0.0.7,Culture = neutral,PublicKeyToken = null'

  在System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName,String codeBase,Evidence assemblySecurity,RuntimeAssembly locationHint,StackCrawlMark& stackMark,Boolean throwOnFileNotFound,Boolean forIntrospection,Boolean suppressSecurityChecks)

   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName,String codeBase,Evidence assemblySecurity,RuntimeAssembly locationHint,StackCrawlMark& stackMark,Boolean throwOnFileNotFound,Boolean forIntrospection,Boolean suppressSecurityChecks)

  在System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef,Evidence assemblySecurity,StackCrawlMark& stackMark,Boolean forIntrospection,Boolean suppressSecurityChecks)

  在System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString,Evidence assemblySecurity,StackCrawlMark& stackMark,Boolean forIntrospection)

  在System.Reflection.Assembly.Load(String assemblyString)

  在System.UnitySerializationHolder.GetRealObject(StreamingContext context)



  在Microsoft.Build.Framework.ITask.Execute()

  在Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()

  在Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost,TaskLoggingContext taskLoggingContext,TaskHost taskHost,ItemBucket bucket,TaskExecutionMode howToExecuteTask,Boolean& taskResult)



WRN:程序集绑定日志已关闭。

要启用程序集绑定失败日志记录,请将注册表值[HKLM \Software\Microsoft\Fusion!EnableLog](DWORD)设置为1.

注意:程序集绑定失败日志记录会导致性能损失。

要关闭此功能,请删除注册表值[HKLM \Software\Microsoft\Fusion!EnableLog]。

    LbtMenu

The "FindRibbons" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly 'LbtMenu_2010, Version=1.0.0.7, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system can not find the file specified.
File name: 'LbtMenu_2010, Version=1.0.0.7, Culture=neutral, PublicKeyToken=null'
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.Load(String assemblyString)
   at System.UnitySerializationHolder.GetRealObject(StreamingContext context)

   at Microsoft.Build.Framework.ITask.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
    LbtMenu

非常感谢任何帮助。

祝你好运,

推荐答案

有任何建议吗?

Any suggestion, please?

致以最诚挚的问候,


这篇关于将Excel加载项从VS2008转换为VS2010:项目不再编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆