获取bin目录

System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase;//获取binDebug目录
System.AppDomain.CurrentDomain.BaseDirectory;//获取binDebug目录
System.Environment.CurrentDirectory;//获取binDebug目录
System.IO.Directory.GetCurrentDirectory();//获取binDebug目录
System.Windows.Forms.Application.StartupPath;//获取binDebug目录
System.Windows.Forms.Application.ExecutablePath;//获取binDebug程序.exe
原文地址:https://www.cnblogs.com/WeiYongZhi/p/10056988.html