我想用对象(_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
上一篇:android怎么样对我的目标点移动许多图像我的、图像、目标、android
下一篇:当onSensorChanged()的调用之前就可以完成当前的执行会发生什么?就可以、发生、onSensorChanged