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.
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.
HI bharath,
u can get the bin folder by using
for web apps
System.AppDomain.CurrentDomain.BaseDirectory + \\Bin\\XML;