如何在VS 2013中添加对VB.NET项目的引用到.exe文件 [英] How do I add a refernce to VB.NET project to .exe file in VS 2013

查看:453
本文介绍了如何在VS 2013中添加对VB.NET项目的引用到.exe文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用VS2013构建Web应用程序。我需要添加对.exe文件的引用

我去 - >解决方案资源管理器 - >右击 - >添加 - >参考 - >浏览到包含.exe文件的文件夹我会喜欢广告引用。底部的信箱按其扩展名显示所有类型的文件,如* .ocx,* .tlb,* .dll,exe(.exe没有*符号,我猜,这意味着什么)。我无法拿起我的(.exe)文件,因为它没有看到它。

任何想法?



谢谢你提前,Serge。

I'm building a Web Application with VS2013. I need to add reference to .exe file
I go to ->solution explorer->right click->Add->Reference->Browse to folder containing .exe file I would like to ad a reference to. Letterbox at the bottom shows all types of the files by their extensions like this "*.ocx, *.tlb, *.dll, exe" (.exe comes without * sign, which I guess, means something). I cannot pick up my (.exe) file because it doesn't "see" it.
Any ideas?

Thank You in advance, Serge.

推荐答案

没关系。使用* .exe主可执行模块引用程序集是非常不寻常的,但这是非常合法的,可以在某些技术中使用(我想知道,为什么需要它?)。无论如何,这根本不是问题。我甚至没有注意到做这些事情有什么问题。您不必遵循预定义的命名模式;文件名可以是任何东西。只需输入'*'作为文件名,所有文件都会显示。

-SA
It does not matter. Referencing assembly with a *.exe main executable module is quite unusual, but this is quite legitimate thing and can be used in some techniques (I wonder, why do you need that?). Anyway, this is not a problem at all. I did not even noticed any problems doing such things. You don't have to follow a predefined naming pattern; file name could be anything. Just type '*' as a file name, and all files will be shown.
—SA


我会检查你是否可以将exe构建为库,然后在需要的地方使用它。
I would check if you could build the exe as a library and then use it where you need it.


这篇关于如何在VS 2013中添加对VB.NET项目的引用到.exe文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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