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