简体   繁体   English

如何在VB.NET项目中包含必要的库?

[英]How can I include necessary libraries with VB.NET project?

I am reworking old VB6 apps into VB.NET with Visual Studio 2005 and when i tried to install them on Windows 10 I got following errors: 我正在使用Visual Studio 2005将旧的VB6应用程序重新构建为VB.NET,当我尝试在Windows 10上安装它们时,出现以下错误:

adodb vb.net Windows 10错误

msdatasrc vb.net Windows 10错误

How can I include the missing libraries and carry them with the project? 如何包含缺少的库并将其随项目一起携带? Or can i somehow make a VB.NET installer with Visual Studio 2005 and it will take all dependencies with it? 还是我可以用Visual Studio 2005制作VB.NET安装程序,它将带有所有依赖项?

It went well. 进展顺利。 I created new Setup project by using this tutorial vs 2005 setup project tutorial . 我使用本教程与2005安装项目教程创建了新的安装项目。

I added all the files that resided in the bin folder of my development project, plus I added adodb.dll by using the "Add Assembly" dialog window, right click on the setup project "Application Folder " node. 我添加了所有驻留在开发项目的bin文件夹中的文件,还使用“添加程序集”对话框窗口添加了adodb.dll ,右键单击安装项目“应用程序文件夹 ”节点。

I also added msdatasrc.dll which is like backward compatibility library for MS Office for Windows XP. 我还添加了msdatasrc.dll ,它类似于Windows XP的MS Office的向后兼容库。 You can find download link here office xp support files 您可以在此处找到下载链接Office XP支持文件

Once you these files, you can create shortucts which will open the main *.exe file when double clicked. 一旦您找到了这些文件,就可以创建快捷方式,双击该快捷方式将打开主* .exe文件。 Shortcuts for the desktop and for menu, can be added on the nodes User's Desktop and User's Menu 可以在节点“ 用户的桌面”和“ 用户的菜单”上添加桌面和菜单的快捷方式

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM