C#获取程序所在目录

Environment.CurrentDirectory
System.IO.Directory.GetCurrentDirectory()
System.IO.Path.GetDirectoryName(typeof(Program).Assembly.Location)
AppContext.BaseDirectory

猜你喜欢

转载自www.cnblogs.com/RainFate/p/12082375.html
今日推荐