How to get application path
The AppDomain.CurrentDomain.BaseDirectory property gets the base directory that the assembly resolver uses to probe for assemblies.
So it's functioning 100% as it should. If you were to build your application, cut and paste it somewhere else in another folder or drive. Those changes would be reflected in this property.
Also, you mentioned that you do not want this part bin\Debug
, so you want what's before that? Please be specific.
If you want to figure out your application executable path (as I understood):
string path = Application.ExecutablePath;
to get what you want:
var enviroment = System.Environment.CurrentDirectory;
string projectDirectory = Directory.GetParent(enviroment).Parent.FullName;