Copy Content to Output Directory of Visual Studio Test Project


/ Published in: C#
Save to your folder(s)

When executing a test that requires a file to be present at a specific location, it is convenient to add this file to the Test project. Nevertheless, this file is not copied to the test output directory by default.


Copy this code and paste it in your HTML
  1. Open the LocalTestRun.testrunconfig file by going to Test (menu item), then Edit Test Run Configurations. Go to second option Deployment and select the file(s) that must be copied to the output directory.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.