添加引用EXE而不是dll有多大可行 [英] how much its feasible to add reference EXE instead of dll

查看:54
本文介绍了添加引用EXE而不是dll有多大可行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在visual studio 2010(vb.net)中完成的项目3.5 .net名称:fieldManager



i希望在我的另一个应用程序中嵌入上面的项目将在同一个visual studio 2010(vb.net)开发3.5 .net名称:expressionEditor



我的问题是添加引用EXE而不是dll是多少可行而不是将fieldManager项目转换为类库并添加引用如果我直接将fieldManager项目的引用EXE添加到expressionEditor中会有任何问题



请帮忙!

a project which is completed in visual studio 2010 (vb.net) 3.5 .net name : fieldManager

i want to embed above project in my another application which i will be developing in same visual studio 2010 (vb.net) 3.5 .net name : expressionEditor

my question is how much its feasible to add reference EXE instead of dll i.e instead of converting fieldManager project into class library and adding reference will there be any issues if i directly add reference EXE of fieldManager project to expressionEditor

please help!

推荐答案

是的 - 您可以添加对EXE或DLL的引用,前提是它是一个.NET程序集文件,它完全相同(除了EXE有一个静态Main方法,并且DLL没有)。

只需按常规方式添加引用,并浏览到EXE文件 - 只需将浏览对话框组合框中的Assembly(* .dll)更改为Assembly (* .exe),或添加项目t o您的解决方案并从Projects中选择它。
Yes - you can add a reference to an EXE or DLL, provided it is a .NET assembly file it's exactly the same (except the EXE has a static Main method, and the DLL doesn't).
Just add a reference in the usual way, and Browse to the EXE file - just change the "Assembly (*.dll)" in the browse dialog combo box to "Assembly (*.exe)", or add the project to your solution and select it from Projects.


不确定您的意思是添加引用exe - 您可以将exe作为二进制资源添加到主项目中,提取并运行它,如果这就是你要找的东西
not sure what you mean by add reference exe - you can add your exe as a binary resource to the main project, extract it and run it, if that's what you're looking for


这篇关于添加引用EXE而不是dll有多大可行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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