Page 2 of 2

Re: DLL change path

Posted: 28 Oct 2021, 15:55
by spiceagent11
I did exactly what you said:
string filename = Path.Combine("Environment.CurrentDirectory", "settings.xml");

Are there any other options or am I still doing something wrong?

Re: DLL change path

Posted: 23 Dec 2021, 11:01
by chaksur
Try this in

string filename = Path.Combine(Environment.CurrentDirectory, "settings.xml");

Re: DLL change path

Posted: 30 Jun 2022, 13:59
by uskeliye46
Do not put quotes in Environment.CurrentDirectory , this is the Environment variable, there is no need for " " (quotes) around that!

Re: DLL change path

Posted: 25 Oct 2022, 10:51
by paanjii2
Applications can control the location from which a DLL is loaded by specifying a full path or using another mechanism such as a manifest. If these methods are not used, the system searches for the DLL at load time as described in this topic.28-Jul-2021

myfiosgateway.one
mobdro

Re: DLL change path

Posted: 26 Dec 2022, 09:18
by reckstay
Do not put quotes in Environment.CurrentDirectory , this is the Environment variable, there is no need for " " (quotes) around that!

Re: DLL change path

Posted: 11 Jan 2023, 14:05
by archisur
string filename = Path.Combine(Environment.CurrentDirectory, "settings.xml");
it worked for me