2
Answers

The current project directory

Lior Kooznits

Lior Kooznits

16y
15.2k
1

Hi everyone,

I need to get the current project directory but all this code samples  return only the path of  the startup project.

string s1 = AppDomain.CurrentDomain.DynamicDirectory;

string s2 = AppDomain.CurrentDomain.BaseDirectory;

string s3 = Environment.CurrentDirectory;

string s4 = System.IO.Directory.GetCurrentDirectory();

Can someone please help me?

Thank's in a head , Lior

Answers (2)