If i have the following directory structure:
Project1/bin/debug
Project2/xml/file.xml
I am trying to refer to file.xml from Project1/bin/debug directory
I am essentially trying to do the following:
string path = Environment.CurrentDirectory + @'..\..\Project2\xml\File.xml':
what is the correct syntax for this?
It’s probably better to manipulate path components as path components, rather than strings: