var assembly = Assembly.GetExecutingAssembly(); var stream = assembly.GetManifestResourceStream(path)
得到的stream是null,
解决办法:找到文件,右键-属性-生成操作-改为嵌入资源