How to get application path
i am using string path = AppDomain.CurrentDomain.BaseDirectory; to get my application path ,but this gives something like C:\Projects\XYZ\ABC\bin\Debug i don't want bin\Debug .Is there any way to achieve this ? 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