C# 读取资源文件 GetManifestResourceStream
C#
全选
var asm = Assembly.GetExecutingAssembly();
//var stream = asm.GetManifestResourceStream("项目命名空间.资源文件所在文件夹名.资源文件名");
Stream stream = asm.GetManifestResourceStream("WinFormsApp2._SQLs.20230829-101.sql");
using (stream)