How to Access Bin Folder of Active Project using visual studio 2010 add in

老子叫甜甜 提交于 2019-12-11 14:19:16

问题


I want to access Bin folder of active project using object (_applicationObject) that i get it after create add-in project my code till now:

object ob = _applicationObject.ActiveSolutionProjects;
 // i want this result
 // D:/Myproject/Bin

回答1:


Environment.CurrentDirectory

returns the current working directory.

or you can use

System.Reflection.Assembly.GetExecutingAssembly().Location



来源:https://stackoverflow.com/questions/18376697/how-to-access-bin-folder-of-active-project-using-visual-studio-2010-add-in

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!