string v = Directory.GetCurrentDirectory();
//return F:\code\xxxDemo\20221024\bin\Debug\netcoreapp3.1
// 摘要:
// Gets the current working directory of the application.
// 获取应用程序的当前工作目录。
//
// 返回结果:
// A string that contains the absolute path of the current working directory, and
// does not end with a backslash (\).
// 包含当前工作目录的绝对路径,且不以反斜杠(\)结尾的字符串。
//
// 异常:
// T:System.UnauthorizedAccessException:
// The caller does not have the required permission.
// 调用者没有所需的权限。
//
// T:System.NotSupportedException:
// The operating system is Windows CE, which does not have current directory functionality.
// This method is available in the .NET Compact Framework, but is not currently
// supported.
// 操作系统是Windows CE,它没有当前的目录功能。此方法在. net Compact框架中可用,但目前不支持。