system.Reflection.Assembly assembly = System.Reflection.Assembly.GetExecutingAssembly();
System.IO.Stream inputStream = assembly.GetManifestResourceStream(assembly.GetType().Namespace + "Manager.NLog.config");
using (StreamReader reader = new StreamReader(inputStream))
{
string result = reader.ReadToEnd();
}
将空错误作为输入流?我在项目文件夹下添加了配置文件。