VS 2010重建项目时会发生什么? [英] What happens when VS 2010 rebuilds a project?

查看:115
本文介绍了VS 2010重建项目时会发生什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我只是重建了我的Visual Basic 2010项目,现在在进行更改后就无法构建我的项目.每当我单击构建时,它都会给我错误System.TypeLoadException-无法从程序集"ADODB,版本= 7.0.3300.0,文化=中性,PublicKeyToken = b03f5f7f11d50a3a"中加载类型"ADODB._Recordset_Deprecated"

是什么引起了这个问题?我该如何解决?请帮忙!!!!

Hi,
I just rebuilt my visual basic 2010 project and now i can''t build my project after making changes. Whenever I click build it gives me the error System.TypeLoadException - Could not load type ''ADODB._Recordset_Deprecated'' from assembly ''ADODB, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a''

What''s causing that problem? How do I solve it? Please help!!!!

推荐答案

Rebuild首先清除解决方案中的所有项目输出,然后根据项目的依赖关系来构建项目.您的一个项目似乎依赖于另一个引入ADODB甚至使用ADODB生成类的项目.

如果在解决方案资源管理器中右键单击解决方案节点,请单击项目依赖关系",然后对于组合框中的每个项目,请确保已选中所有必须首先构建的项目.

如果您实际上不是在添加项目输出作为其他项目的依赖项,而是在实际添加项目本身,则这是自动的.右键单击项目并选择添加引用",即可在项目内执行此操作.单击项目"选项卡,然后选择您要依赖其输出的项目.这会自动以正确的顺序建立项目依赖关系(只是避免循环).
Rebuild first cleans all the project output in your solution, then builds the projects based on their project dependencies. It would seem that one of your projects has a dependency on another project that pulls in ADODB or even generates a class using ADODB.

If you right-click on your solution node in Solution Explorer, click Project Dependencies, and for each project in the combobox make sure you have checked all the projects which must be built first.

This is automatic if instead of adding project output as other projects'' dependencies, you actually add the project itself. You can do this within a project when you right-click on the project and select Add Reference. Click on the Projects tab, and select the project(s) which have output you depend on. This automatically establishes project dependencies in the correct order (just avoid cycles).


这篇关于VS 2010重建项目时会发生什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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