是否有一个exe之间的任何特殊的差值从.NET的角度来看一个DLL? [英] Is there any special difference between an exe an dll from .net standpoint?

查看:100
本文介绍了是否有一个exe之间的任何特殊的差值从.NET的角度来看一个DLL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在过去使用的.NET可执行文件的库。我只是将它们添加到Visual Studio中的引用和我已经准备好去。今天,我想同样的一个新的exe文件(实际上是我的),它似乎并没有工作。当我把它添加到Visual Studio和尝试在对象浏览器看它的成员,它不会显示该可执行文件的组件内部的任何东西。

I have in the past used .net executables as libraries. I'd just add them to the references in visual studio and I was ready to go. Today I tried the same to a new exe (actually mine) and it doesn't seem to work. When I add it to Visual Studio and try to watch its members on the Object Browser, it doesn't show up anything inside that executable's assembly.

我知道一个exe和dll之间的主要区别在于,第一有入口点,而第二不。有没有更多的区别是什么?我知道非托管的DLL的也有一个DLL入口点,别.NET有一个吗?

I know the main difference between an exe and dll is that the first has an entry point while the 2nd doesn't. Are there any more differences? I know that unmanaged dll's also have a DLL entry point, do .net have one too?

此外,可能是什么,可以让我的标准EXE / DLL(这个我的意思是,不能混淆或任何极端类的)不会出现在对象浏览器什么?

Also, what might be the reasons that could make my standard exe/dll (with this i mean, not obfuscated or anything extreme like that) not show up anything in the Object Browser?

推荐答案

它应该工作,确保该EXE是一个.NET EXE(组装),它具有一定的公共类型。

It should work, make sure that the EXE is a .NET exe (assembly) and that it has some public types.

这篇关于是否有一个exe之间的任何特殊的差值从.NET的角度来看一个DLL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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