title: How to get C# (.net core) project directory path in Visual Studio 2017 RC3?
body: <p>I have a C# (.Net Core) solution in visual studio 2017 RC3 that contains many projects (4 if you are curious) and that I recently migrated from the old project.json/visual studio 2015 format by using VS 2017 RC3.</p>
  
  <p>One of the projects is a test project, in which I need to access some files contained under it. </p>
  
  <p>It seems that <code>Directory.GetCurrentDirectory()</code> cannot be relied upon to get the projects path in the test code, since tests , in VS 2017, are ran from the IDE's installation location  <code>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE</code>.</p>
  
  <p>Currently I am working around this by hard-coding the test project's base path. As this is not ideal, <strong>is there an alternative to programatically get the base path of a project in VS 2017 RC3?</strong> </p>