Selenium can't find chromedriver.exe

I can't explain why it works this way but this is how I got it to work.

IWebDriver driver = new ChromeDriver(".");

I initially copied the driver into the same directory as my Program.cs and passed in the path to the driver like so:

IWebDriver driver = new ChromeDriver("chromedriver.exe");

That resulted in this message:

The file chromedriver.exe\chromedriver.exe does not exist.

So just for kicks I tried passing in "." for the path and it worked.

This is probably a better solution. The driver needs to be in the same directory as your app code. Not in the /bin directory and this will work.

IWebDriver driver = new ChromeDriver(Directory.GetCurrentDirectory());