c# - Running unit tests in VS2012 from network shares / within VM -


running visual studio 2012 update 3 , resharper 7.1.3 running in vmware machine windows 7 64bit.

when working projects on network shares or mapped drives found assemblies not being loaded due change in cas policies .net 4.0

system.notsupportedexception: attempt made load assembly network location have caused assembly sandboxed in previous versions of .net framework. release of .net framework not enable cas policy default, load may dangerous. if load not intended sandbox assembly, please enable loadfromremotesources switch. see http://go.microsoft.com/fwlink/?linkid=155569 more information.

i know need add reference loadfromremotesources = true config file somewhere far following have not worked

devenv.exe.config of resharper testrunner ones

used task manager see process running tests , found vstest.executionengine.

found relevant config file "vstest.executionengine.x86.config" , added following <runtime> section <loadfromremotesources enabled="true"/>

visual studio 2012

c:\program files (x86)\microsoft visual studio 11.0\common7\ide\commonextensions\microsoft\testwindow

visual studio 2013

c:\program files (x86)\microsoft visual studio 11.0\common7\ide\commonextensions\microsoft\testwindow


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -