I have a path "C:\Users\TestProject\TestProject.csproj
I want to get the path up until "C:\Users\TestProject
thanks!
string dir = System.IO.Path.GetDirectoryName(myPath);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With