I have created a C# Console App for use in Command Prompt.
Here is my code:
static void Main(string[] args)
{
string path = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
Console.WriteLine(path);
}
I want to get C:\Users\Sophairk instead of C:\testswc.
How to fix my code to get as what I want?
Thanks in advance!