Memi.Reflection

Private members of memi's thoughts

Design Time Directory in VS 2005

I'm currently working on some design time editors, which need to read configuration settings from the web.config / app.config files, located in the main project folder.

The main problem is to find the directory of the project. There are some good posts about it, like here and here, but alas, they are all good only for VS 2003. I couldn't find any info about implementing such a functionality in VS 2005.

Do you know of any source available regarding this issue?

Posted: Mar 20 2005, 09:24 PM by memi | with 16 comment(s)
Filed under:

Comments

AndrewSeven said:

The EnvDTE is still there, you could use it to explore the project properties a bit or try some of the other d-t services.


# March 20, 2005 6:27 PM

Simon Calvert said:

In VS2005, you'll be able to get to config easily, and use the strongly-typed management APIs on configuration.

IWebApplication webApp = (IWebApplication)Component.Site.GetService(typeof(IWebApplication));
if (webApp != null)
Configuration config = webApp.OpenWebConfiguration(true);

Simon
ASP.NET
# March 21, 2005 12:27 PM

Memi Lavi said:

Hi Simon.

Thanks for the info.
Perhaps I'm missing something, but I can't find any reference to the Component object in the code. In addition, I'm talking about WinForms application, and not Web Application.

To clarify: I'm trying to get this info in the EditValue method of my custom UITypeEditor.
Do you know how do I get this info there?
# March 22, 2005 1:52 PM

Howard van Rooijen's Blog said:

I was working on some proof of concept web controls this weekend; my team has just started work on a...
# May 29, 2006 10:46 AM

fx30Alexa said:

A lot of persons know the basic keys of term paper essays composing, nevertheless that does not mean they can compose premium qulity papers, but a <a href="http://quality-papers.com">paper writing service</a> should assist to write the argumentative essay of high quality and improve writing skills of some students.

# February 23, 2010 11:09 PM

essay writing service said:

Colleges bring in academic papers writing requirements. Lots of college students are troubled just about writing. Hence, it is simpler to ask the essay writing service about writing help!

# October 19, 2011 1:50 PM

bookmarking said:

I really liked your article post.Thanks Again. Awesome.

# May 7, 2012 1:09 PM

bookmarking said:

I truly appreciate this blog. Really Cool.

# May 7, 2012 3:26 PM

cheap said:

35dC0V Awesome blog.Much thanks again. Really Great.

# May 10, 2012 2:46 AM

bookmarking said:

wKFAvs Thanks so much for the blog. Fantastic.

# May 10, 2012 6:35 AM

icon clip art said:

 In it something is. Thanks for an explanation. I did not know it.

P.S. Please review <a href="romavidi2.deviantart.com/.../Aero-Business-Icons-for-Wi-296597483">Aero Business Icons for Wi... from romavidi2</a>

# September 22, 2012 6:27 AM

icon package said:

 I not a joke!

<a href="www.hpixel.com/.../a>

# September 23, 2012 1:52 AM

icon package said:

<a href="www.fortedownloads.com/.../download.html"> It is delightful</a>

# October 10, 2012 6:36 AM

icons downloads said:

<a href=apecv.pt/.../showthread.php Has understood not absolutely well.</a>

# November 3, 2012 11:36 AM

Social bookmarks said:

3tUt2Y A round of applause for your blog post.Thanks Again. Awesome.

# April 1, 2013 3:28 AM

social bookmarking service said:

p5UKwl I really like and appreciate your blog post.Thanks Again. Will read on...

# April 19, 2013 11:30 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)