Path.GetFullPath returning wrong path in C# <p>According to the MSDN docs, to get the full file path of a file use</p> <pre><code>var fileName = Path.GetFullPath("KeywordsAndPhrases.txt"); </code></pre> <p>Which I would assume delivers the full path of that file for the project it is in.</p> <blockquote> <p>'K:\HeadlineAutoTrader\Autotrader.Infrastructure.HeadlineFeeds\Data\KeywordsAndPhrases.txt'</p> </blockquote> <p>Which it doesn't, it returns;</p> <blockquote> <p>'K:\HeadlineAutoTrader\AutotraderTests\bin\Debug\Data\KeywordsAndPhrases.txt'</p> </blockquote> <p>which somewhat makes sense as the code I'm testing is being run in the test project.</p> <p>So the question is how does one get the full filepath of a text file in a folder in another class library within the same solution?</p> <p>This is a WPF based project, obviously it would be easier in a web app as Server.MapPath works great</p>