How to get Directory while running unit test

后端 未结 14 832
余生分开走
余生分开走 2021-02-02 05:07

Hi when running my unit test I\'m wanting to get the directory my project is running in to retrieve a file.

Say I have a Test project named MyProject. Test I run:

<
14条回答
  •  走了就别回头了
    2021-02-02 05:23

    I'm not sure if this helps, but this looks to be briefly touched on in the following question.

    Visual Studio Solution Path environment variable

提交回复
热议问题