0

I have a test project with the TestData folder, where are a lot of .txt and .csv test files are located and used by the tests. Is there any way to mark/emphasize the TestData folder, so that all the files in it are Content and Copy if newer.

My intention is to have something like a "resource" folder, without a need of configuring file properties (Build Action to Content and Copy to Output Directory to Copy if newer) every time we add new test data.

2

1 Answer 1

0

Are you able to make a copy of the TestData folder and call it TestDataCopy? That way, you can compare the contents of both folders to see if anything has changed. If there is a change, you can copy the changed contents from TestData to TestDataCopy.

Sign up to request clarification or add additional context in comments.

1 Comment

Hi, @Gary, my question is not about comparing files. I have a lot of files for my tests, and I don't want every time to set the appropriate properties (see in the question) for every new file. I would have a "resource folder" where they are located.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.