When I run tests in Visual Studio I have a test folder containing testdata. To reach these I use
File.ReadAllText(Path.Combine("testData", "input.html"));
But instead of looking in the project folder where the testdata is located
C:\repos\myproject\testdata
Visual studio tries to find the file in
`C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\testData\input.html`
Which results in the following error:
`Message: System.IO.DirectoryNotFoundException : Could not find a part of the
path 'C:\Program Files (x86)\Microsoft Visual
Studio\2017\Professional\Common7\IDE\testData\input.html'.`
Since we are several people working with the same project we need to use relative paths. Where can I change the relative path that VS is using? I'm using Visual Studio Professional 2017.
I have tried the first solution in
How to define relative paths in Visual Studio Project?
but both the solution and project property page is different in VS Pro 2017.
Images: