是否有一个exe之间的任何特殊的差值从.NET的角度来看一个DLL?差值、有一个、角度、特殊

2023-09-04 12:34:00 作者:金牌馬子

我在过去使用的.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.