如何使用Visual Studio访问活动项目的bin文件夹2010中添加 [英] How to Access Bin Folder of Active Project using visual studio 2010 add in
本文介绍了如何使用Visual Studio访问活动项目的bin文件夹2010中添加的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想用对象(_applicationObject)来访问活动项目的Bin文件夹中,我得到它后,创建外接程序项目 我的code至今:
对象ob = _applicationObject.ActiveSolutionProjects;
//我想这个结果
// D:/ MYPROJECT /斌
解决方案
Environment.CurrentDirectory
返回当前的工作目录。
也可以使用
System.Reflection.Assembly.GetExecutingAssembly()。位置
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
解决方案
Environment.CurrentDirectory
returns the current working directory.
or you can use
System.Reflection.Assembly.GetExecutingAssembly().Location
这篇关于如何使用Visual Studio访问活动项目的bin文件夹2010中添加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文