我制作了一个自定义库(test.dll),并创建了一个引用我的库的控制台应用程序。当然,我在VS中添加了参考。所以代码就像:
//use the type in test.dll
Car c = new Car(); //Car is defined in test.cs which compiled into test.dll
c.SpeedUp();
string pID = Console.ReadLine();
int theProcID = int.Parse(pID);
theProc = Process.GetProcessById(theProcID);
ProcessModuleCollection theMods = theProc.Modules;
foreach (ProcessModule pm in theMods)
{
string info = $"-> Mod Name: {pm.ModuleName}";
Console.WriteLine(info);
}
所以我通过任务管理器找到了控制台应用程序的进程ID,然后键入了ID,但是在列表中找不到“ test.dll”,我可以看到很多其他dll,例如'mscore.dll','mscorlib.ni.dll','user32.dll等',那我怎么了?
顺便问一下,“ mscorlib.ni.dll”和著名的“ mscorlib.dll”有什么区别?
答案 0 :(得分:0)
我用netcore尝试过,我可以看到引用的test.dll