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.
WinRT 中的 Assembly 类上不再有用于访问当前正在执行的程序集的静态方法?WinRT 中的方法是什么?
这应该可以解决问题:
using System.Reflection; ... typeof(Class).GetTypeInfo().Assembly
Class通常是您编写此代码的类。
Class