简体   繁体   English

如何使用Visual Studio 2010添加Active Project的Bin文件夹

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

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: 我想使用创建附加项目后的对象(_applicationObject)访问活动项目的Bin文件夹,直到现在我的代码:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在Visual Studio 2010中的项目文件夹中访问bin / debug中的文件? - How to access the files in bin/debug within the project folder in Visual studio 2010? 程序集不移到Visual Studio C#2010项目中的bin文件夹 - Assembly not moving to bin folder in Visual Studio C# 2010 project 如何将HtmlAgilityPack添加到Visual Studio 2010项目 - How to add HtmlAgilityPack to the Visual Studio 2010 project 如何在bin / Release for Visual Studio Project中创建文件夹? - How to create a folder in bin/Release for Visual Studio Project? 在Visual Studio 2010中运行活动项目 - Run active project in Visual Studio 2010 使用c#将Access数据库添加到Visual Studio 2010中的项目中 - Adding Access Database to Project in Visual Studio 2010 using c# 如何使用 c# 在 Visual Studio 2010 中以编程方式将现有项目添加到当前解决方案 - How to add an existing project to a current solution programmatically in visual studio 2010 using c# 在Visual Studio 2010中使用“添加Web引用”添加服务时,如何访问服务方法? - How to Access the Service method when service is added using “Add Web Reference” in Visual Studio 2010? 将图像文件添加到Visual Studio 2010项目 - Add image files to a Visual Studio 2010 project 自动将本机dll复制到Visual Studio中引用项目的bin文件夹中 - Automaticaly copy native dll to the bin folder of referencing project in Visual Studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM