How do you get the current project directory from C# code when creating a custom MSBuild task? -
Rather than running an external program with hard work, I would like to get the current project Dir. I am calling an external program using a process in custom work.
How do I do this? AppDomain.CurrentDomain.BaseDirectory just let me know VS Returns the location of 2008.
You have one of the two methods.
string startup path = system. Io Directory Gatecartant Directory (); String startup path = environment current directory; tell me what you think is better
Comments
Post a Comment