开发者

System.Reflection.Assembly.GetExecutingAssembly() in WinRT

开发者 https://www.devze.com 2023-04-06 00:16 出处:网络
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:

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消