VS2010调试错误:无法找到对象实例的方法 [英] VS2010 Debug Error: Cannot find the method on the object instance
问题描述
基本上,我已经得到了我使用所有的时间在VS2008这个插件的应用程序完美。
Basically, I've got this plugin-based application I've used all the time in VS2008 flawlessly.
在我当前的项目(顺便说一下VS2010),我写了一个插件应用程序,每当我试图从我的插件使用一个特定的类的实例(在外部DLL),我得到一个错误。
In my current project (VS2010 by the way) I wrote a plugin for the application and whenever I try to use an instance of a particular class (in an external dll) from my plugin, I get an error.
我试着看实例,我得到的消息找不到对象实例的方法。
在监视窗口。 这是从来没有过!
I tried watching the instance and I got the message "Cannot find the method on the object instance."
in the watch window. This has never happened before!
我还发现,一些在插件的扩展方法是行不通的。
I also found that some of the extension methods in the plugin does not work.
怎么可能是错的?
推荐答案
我通过重新编译在VS2010在X pressData类库修正了这个错误,并有插件应用程序引用新编译的库。
I fixed this error by recompiling the XpressData class library in VS2010 and had the Plugin app reference the newly compiled library.
现在一切都完美。
这篇关于VS2010调试错误:无法找到对象实例的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!