Mstest Cannot Find the Assembly

Unit test project cannot find assembly under test (or dependencies)

After checking out some additional search results I came across this question here at SA Private Accessor for method is not found .

After I deleted the *.accessor file, my test project stopped complaining and compiled succesfully.

Everybody thanks for their help!

MSTest cannot find the assembly

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

MSTest.exe gives assembly or module not found warning

  1. You can reference assemblies from GAC
  2. You can specify what files should be deployed alongside your compiled test assembly before tests are run with DeploymentItemAttribute on test method.

MSTest does not discover unit test in assembly

If you are using MSTest v2, then you should use VSTest instead of MSTest:

Sample Image

Could not load file or assembly 'Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter' or one of its dependencies. The system cannot find the file

It appears that Microsoft changed some assemblies/namespaces among other things for their unit testing framework and somehow broke something or there may be a problem with ReSharper so I ended up sticking with NUnit.

MSTest can not find App_GlobalResources assembly

The most acceptable solution I have found is to avoid using App_GlobalResources and configure resource building at compile time:

http://odetocode.com/Blogs/scott/archive/2009/07/16/resource-files-and-asp-net-mvc-projects.aspx



Related Topics



Leave a reply



Submit