<p>How do get the startup path ( system.windows.forms.application.StartupPath ) of my exe without adding a reference to system.windows.forms?</p>

EDIT: @KiwiBastard's answer is the correct method:
```
```
System.AppDomain.CurrentDomain.BaseDirectory
```
```
Add a reference to
```
System.Reflection
```
and use
```
```
Assembly.GetExecutingAssembly().Location
```
```
EDIT: Depending where you intend getting the startup path, this might be more appropriate:
```
```
Assembly.GetEntryAssembly().Location
```
```