How to make unit test run in bin folder

前端 未结 6 1508
遇见更好的自我
遇见更好的自我 2020-12-18 20:31

I\'m trying to access a file in my solution structure during the unit test. My unit test project has the bin\\Debug\\ as the output directory. So I have written

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-18 21:01

    It seems like a Visual Studio bug. Here's what I did to fix it (which magically worked!):

    1. Moved/Renamed the local.testsettings file.
    2. Tried to run the test again (Which will not run)
    3. Put local.testsettings file back again.
    4. It should run the failing test now!

提交回复
热议问题