Xml file not copying to test output directory

后端 未结 4 1702
不知归路
不知归路 2021-02-06 21:19

Visual Studio 2010, x64 machine, using the built-in web server to host a WCF service with a set of unit tests using the built-in test framework.

I have an XML file that

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-06 21:58

    I was facing the issue like, one of my file was not getting copied in to out folder even if i have entered that file name in local.testSettings and set property as "Copy Always".

    Following steps has solved my problem:

    1. Open Test Menu
    2. Select Test Settings
    3. Select option "Select Test Settings file"
    4. Select your .testsettings file from Open Settings File window
    5. Make sure that Selected .testsettings file is checked under Test -> Test Settings

    Hope this will help some one.

提交回复
热议问题