Getting the macro value of project's TargetPath via DTE
问题 I need to get the absolute output path of the project's assembly via DTE. I tried doing this using this method, where I would access the OutputPath property, combining it with the assembly name, however this produces the relative path, such as: ..\..\Output\AnyCPU\Debug\MyAssembly.dll Using Path.GetFullPath is not good for me, because my project might be executing from another location. I noticed that the $(TargetPath) macro (in Build Events tab in project properties) contains the full path