Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Path of Bin Folder for a given project
 

Path of Bin Folder for a given project

How to get the bin folder path of a given project?


Is it possible to get the path of the bin folder based on the current build configuration mode of the project?

I would also like to know how to get the same for a web application project.

bharanreddy  Wednesday, May 16, 2007 9:21 AM
Hi,
You can get the output path of any project using the ConfigurationManager like this:
Project myProject;
myProject.ConfigurationManager.ActiveConfiguration.Properties.Item("OutputPath")
hope it helps.
Jose Escrich  Thursday, May 31, 2007 5:10 PM
Hi,
You can get the output path of any project using the ConfigurationManager like this:
Project myProject;
myProject.ConfigurationManager.ActiveConfiguration.Properties.Item("OutputPath")
hope it helps.
Jose Escrich  Thursday, May 31, 2007 5:10 PM

HI bharath,

u can get the bin folder by using

for web apps

System.AppDomain.CurrentDomain.BaseDirectory + \\Bin\\XML;

Dhanabalan.R  Wednesday, August 08, 2007 10:33 AM

You can use google to search for other answers

Custom Search

More Threads

• How to get the content of buttons
• Error using Project template - Package templates may not be properly registered.
• Add files in multiple projects
• Unable to install GAX/GAT
• ProjectReference
• Change the solution path
• Support for the June or July CTP of VS .Net 2005?
• Wizard with check boxes
• installation problem in GAX
• Multiple Project Creation Template