mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 04:37:30 +02:00
add doc workflow
This commit is contained in:
@@ -20,7 +20,8 @@ namespace WinAlfred.PluginLoader
|
||||
{
|
||||
try
|
||||
{
|
||||
Assembly asm = Assembly.LoadFile(metadata.ExecuteFilePath);
|
||||
byte[] buffer = System.IO.File.ReadAllBytes(metadata.ExecuteFilePath);
|
||||
Assembly asm = Assembly.Load(buffer);
|
||||
List<Type> types = asm.GetTypes().Where(o => o.IsClass && o.GetInterfaces().Contains(typeof(IPlugin)) || o.GetInterfaces().Contains(typeof(ISystemPlugin))).ToList();
|
||||
if (types.Count == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user