Search code examples
c#unit-testingmstestvs-unit-testing-framework

MSTest cannot find the assembly


I was using MSTest

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

and this is the output,

Run has the following issue(s): Warning: Test Run deployment issue: The assembly or module 'Microsoft.Practices. Prism' directly or indirectly referenced by the test container 'test.dll' was not found. Warning: Test Run deployment issue: The assembly or module 'Project.Common.dll' directly or indirectly referenced by the test container 'test.dll' was not found. Warning: Test Run deployment issue: The assembly or module 'Project.Infrastructure.dll' directly or indirectly referenced by the test container 'test.dll' was not found. Warning: Test Run deployment issue: The assembly or module 'Microsoft.Practices. Prism' directly or indirectly referenced by the test container 'test.dll' was not found.

What can i do so MSTest can run well.


Solution

  • You can install the Prism file in the GAC of your build server.