using PluginBase; using System; using System.Runtime.InteropServices; namespace 你好插件 { public class 你好命令 : ICommand { public string 名称 { get => "你好"; } public string 描述 { get => "显示一个你好的消息"; } [DllImport("Kernel32.dll")]//引入命名空间 public static extern bool Beep(int frequency, int duration); public int 执行() { Console.WriteLine("你好 !!!\n"); Beep(700, 200); return 0; } } }