浏览文件
FileHelper.cs
24 行 · 547 B历史下载| 1 | using System; |
| 2 | using System.Collections.Generic; |
| 3 | using System.IO; |
| 4 | using System.Linq; |
| 5 | using System.Text; |
| 6 | using System.Threading.Tasks; |
| 7 | |
| 8 | namespace Core.Librarys |
| 9 | { |
| 10 | /// <summary> |
| 11 | /// 文件操作帮助类 |
| 12 | /// </summary> |
| 13 | public class FileHelper |
| 14 | { |
| 15 | /// <summary> |
| 16 | /// 获取根目录 |
| 17 | /// </summary> |
| 18 | /// <returns></returns> |
| 19 | public static string GetRootDirectory() |
| 20 | { |
| 21 | return Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location); |
| 22 | } |
| 23 | } |
| 24 | } |

