MSTest cannot find the assembly

前端 未结 4 634
旧巷少年郎
旧巷少年郎 2020-12-19 01:24

I was using MSTest

and i use command mstest /testsettings:local.Testsetting /testcontainer:folder\\obj\\Debug\\test.dll

and this is the output,

4条回答
  •  情书的邮戳
    2020-12-19 01:53

    All assemblies that are not used directly in test will not be copied to test folder. Therefor, those test methods should be decorated with attribute like:

    [DeploymentItem("Microsoft.Practices.Prism.dll")]
    

    This solves the problem without adding the assembly to the GAC.

提交回复
热议问题