笔记

//.net core获取应用程序运行目录
String Path1 = AppContext.BaseDirectory; 
String Path2 = Path.GetDirectoryName(typeof(Program).Assembly.Location);
//返回*******bin\Debug\netcoreapp2.0\

 

posted @ 2020-07-30 10:03  binzi-6  阅读(95)  评论(0编辑  收藏  举报