how to get the project folder path in c# code example
Example 1: c# project path
string startupPath = System.IO.Directory.GetCurrentDirectory();
string startupPath = Environment.CurrentDirectory;
Example 2: c# relative path to project folder
string fileName = "ich_will.mp3";
string path = Path.Combine(Environment.CurrentDirectory, @"Data\", fileName);
Example 3: get path od proyect c
AppDomain.CurrentDomain.BaseDirectory