已解决……
看log报错说没有找到DalamudPluginInterface.get_AssemblyLocation()方法,于是改了源代码
//var imagePath = Path.Combine(PluginInterface.AssemblyLocation.Directory?.FullName!, "goat.png");
var imagePath = "D:\SamplePlugin-master\SamplePlugin\bin\x64\Release\goat.png"
问题就解决了,神奇的是加载成功之后我再改回来也没报错了?