问题
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