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
- You can reference assemblies from GAC
- 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:
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
How to Get the Location of the Dll Currently Executing
Why Use a Using Statement with a SQLtransaction
How to Get Status Code from Webclient
Invalid Uri: the Format of the Uri Could Not Be Determined
Casting Object to Int Throws Invalidcastexception in C#
How to Implement Solid Principles into an Existing Project
Why Folderbrowserdialog Dialog Does Not Scroll to Selected Folder
Use Task.Run() in Synchronous Method to Avoid Deadlock Waiting on Async Method
What's the Difference Between Using the Serializable Attribute & Implementing Iserializable
Companyname.Foo' Is a 'Namespace' But Is Used Like a 'Type'
ASP.NET Core Content-Disposition Attachment/Inline
No Definition Found for Getactiveobject from System.Runtime.Interopservices.Marshal C#
Dataannotations: Recursively Validating an Entire Object Graph