How can I programmatically get the path of the current project in my C# code?
Do I have any preprocessor directives for this? Or any macros?
Note: I don't need the path of the current executing assembly, but rather a path of the project, from which this assembly was compiled.
Note (2) - What I'm trying to achieve: I have several files that are compiled as embedded resources. I load and use them in the runtime. I would like to create a "debug" mode, in which the files are loaded from their original location on disk and not from the resource stream. This would enable me to fast-edit the files for test purposes without the need to recompile the assembly. Since the assembly is copied to a different location, outside the project from which it was compiled, in the "debug" mode I can't load the files using relative path.