System.Reflection.Assembly.GetExecutingAssembly() in WinRT
There is no longer a static method on the Assembly class in WinRT for gaining access to the current executing assembly? W开发者_Go百科hat is the methodology for this in WinRT?
This should do the trick:
using System.Reflection;
...
typeof(Class).GetTypeInfo().Assembly
where Class
would normally be the class that you're writing this code in.
精彩评论