How to access test files in my test project?


#1

I have 2 projects:

  • TestFiles.xproj contains a bunch of text files that are useful for testing
  • Tests.xproj with the actual tests

The problem is that I cannot load the files inside TestFiles.xprof, because they are not copied to the output folder. So, how do I load them if they are into a different project from the one that actually uses them?

I seems that using a Resources File (resx) doesn’t work, either.

Thanks in advance!


.NET Foundation Website | Blog | Projects | Code of Conduct