Here is a nice little tip to reference files located in Visual Studio project directory, when running the project from within Visual Studio.
Use the following code:
string path = Path.Combine(Environment.CurrentDirectory, @"..\..\Test.xml");
Your name
Your e-mail (will not be displayed)†
†Your e-mail will never be displayed and only used on the site to display your gravatar (if you got one), and as a means to potentially get back to you, if I have any feedback or questions regarding your comment.
all posts
My name is Lars Hundebøl and I work for eBay Classifieds. By day I implement web sites and content management systems using technologies such as ASP.NET, and by night I tinker around developing web apps with Python and Ruby frameworks.
Follow me on twitter @propellerhead.
Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2010 Lars Hundebøl