Disable shadow copy? ( chromedriver.exe cannot be refereced)
I have a script which uses chromedriver.exe. I cannot reference this file or I get:
CS0009 Metadata file 'C:\dimension\LinqPad\chromedriver.exe' could not be opened -- PE image doesn't contain managed metadata.
So I don't reference it. Half the time my script runs fine. Half the time I get
DriverServiceNotFoundException: The file [whatever]\AppData\Local\Temp\5\LINQPad5_azelyqpv\shadow_yoysfv\chromedriver.exe does not exist. The driver can be downloaded at http://chromedriver.storage.googleapis.com/index.html
It half works, which gets the job done, but I would love if this could work properly. Is there a way to reference chromedriver.exe properly? Is there a way to not shadow? Or is there something else to do?
Hi @dlwiii , here is my way: