How to get my project path? [duplicate]
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: get path for my .exe using c# Hello I have a question: How can I get my root project path? what I mean is the first folder in the project where the solution is. I found that command : System.IO.Directory.GetCurrentDirectory(); However it gives me a specific path to the release folder: wanted_Path/bin/Release So is there other code, should I cut it manually or put my files in the Release folder?? 回答1: You can use