console不能简单的用AppContext.BaseDirectory,
webapi可以用AppContext.BaseDirectory
Console.WriteLine(Environment.CurrentDirectory);
Console.WriteLine(Directory.GetCurrentDirectory());
Console.WriteLine(AppContext.BaseDirectory);
console不能简单的用AppContext.BaseDirectory,
webapi可以用AppContext.BaseDirectory
Console.WriteLine(Environment.CurrentDirectory);
Console.WriteLine(Directory.GetCurrentDirectory());
Console.WriteLine(AppContext.BaseDirectory);