What is the relative path root of DeploymentItemAttribute?

前端 未结 3 1537
清歌不尽
清歌不尽 2021-02-05 13:42

Using MSTest, what is the relative path root of the DeploymentItemAttribute.

3条回答
  •  忘掉有多难
    2021-02-05 13:49

    To assume that the RelativePathRoot default is the dir where your solution resides was not correct in my case, nor was RelativePathRoot defined within my .testrunconfig file. I found the RelativePathRoot default to be the /bin/debug dir for the solution.

    Walking back from that point, then walking up to my file that I was attempting to deploy for the unit test worked fine.

提交回复
热议问题