get project directory c# code example
Example 1: c# project path
string startupPath = System.IO.Directory.GetCurrentDirectory();
string startupPath = Environment.CurrentDirectory;
Example 2: get directory of file c#
using System.IO;
string file = "C:\Documents\file.txt";
Path.GetDirectoryName(file);
Example 3: get path od proyect c
AppDomain.CurrentDomain.BaseDirectory