Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的程序集(.net exe)通常以“Assembly.Load(路径名)”开头。在加载的程序集中,我想访问启动我的程序集的程序集。有机会吗?
您应该可以使用Assembly.GetEntryAssembly().
Assembly.GetEntryAssembly()