Yes gile, you are right! Keyword is while debugging.
SharpDevelop cannot even start x64 application, so script way doesn't work.
Your LISP way means that dwg-file is in debug folder of your project, isn't it? (I don't know LISP, it's just my suggestion)
In my solution I just write to xml-file the folder where all my projects stored, in sub-folders