将dll从VS2008项目转换为VS2010后,运行时错误 [英] Run Time Error after converting dll from VS2008 project to VS2010

查看:100
本文介绍了将dll从VS2008项目转换为VS2010后,运行时错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,该应用程序有一个用VS2008编写的GUI项目,该项目与最初也是在VS2008 C#中创建的多个dll进行接口.我最近将VS升级到2010.当我将dll项目导入VS2010时,一切似乎都进行得很顺利,并且使用3.5的目标Framework正确地进行了编译.但是,当我尝试运行仍在VS2008下编译的GUI时,当GUI尝试实例化dll中定义的类时,会出现运行时错误.我也必须将GUI转换为VS2010项目吗?我在这里想念什么?

感谢您的帮助.

Preston

I have an application that has a GUI project written in VS2008 that interfaces to several dlls also originally created in VS2008 C#. I recently upgraded my VS to 2010. When I imported the dll projects to VS2010 everything seemed to go smoothly and they compiled properly with a targeted Framework of 3.5. However, when I try to run the GUI, which is still compiled under VS2008, I get runtime errors when the GUI tries to instantiate the class defined in the dlls. Do I have to convert the GUI to a VS2010 project as well? What am I missing here?

Thanks for any help.

Preston

推荐答案

您可以尝试删除DLL引用,然后将其重新添加到GUI项目.
You might try deleting and then re-adding the DLL references to your GUI project.


这篇关于将dll从VS2008项目转换为VS2010后,运行时错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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