问题
I have a very simple MSTest unit test project that indirectly have dependency on two versions of MVC.
assemblybinding in app.config is configured to redirect to MVC v4
when I run mstest test runner (VS2012 RC built-in) - I get exception indicating that assembly binding did not work.
If I create testsettings file and disable deployment (or enable deployment and add app.config to the list of items to deploy) - test passes.
Question: why does assemblybinding works with deployment set to false? Can I make this test pass without using testsettings file?
回答1:
I am experiencing the same thing with vs2012, mstest and R#, seems to be a confirmed bug according to this: http://social.msdn.microsoft.com/Forums/en-US/vsunittest/thread/234926d1-42c0-4ebb-af39-1626e72f6c39
Adding link to the same bug report in R#:
http://youtrack.jetbrains.com/issue/RSRP-329567
来源:https://stackoverflow.com/questions/11268547/assemblybinding-does-not-work-in-mstest