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.
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.
You can install the Prism file in the GAC of your build server.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With