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?
DLL change path
Moderators: DllAdmin, DLLADMIN ONLY
Re: DLL change path
Try this in
string filename = Path.Combine(Environment.CurrentDirectory, "settings.xml");
string filename = Path.Combine(Environment.CurrentDirectory, "settings.xml");
-
- Posts: 1
- Joined: 30 Jun 2022, 13:58
Re: DLL change path
Do not put quotes in Environment.CurrentDirectory , this is the Environment variable, there is no need for " " (quotes) around that!
Re: DLL change path
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
myfiosgateway.one
mobdro
Re: DLL change path
Do not put quotes in Environment.CurrentDirectory , this is the Environment variable, there is no need for " " (quotes) around that!
Re: DLL change path
string filename = Path.Combine(Environment.CurrentDirectory, "settings.xml");
it worked for me
it worked for me