asp.net 在业务逻辑存生成文件目录为调用项目的根目录

来源:互联网 发布:自动回复 淘宝 编辑:程序博客网 时间:2024/05/22 06:26
            XmlWriterSettings settings = new XmlWriterSettings();                settings.Encoding = new UTF8Encoding(false);                settings.Indent = true;                settings.IndentChars = (" ");            XmlWriter writer = XmlWriter.Create(HttpRuntime.AppDomainAppPath+filename, settings); //表示调用此业务逻辑层的项目的根目录:
HttpRuntime.AppDomainAppPath

原创粉丝点击