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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -