c# - DEVPATH not working in .NET 4.5.2 CLR v4.0.30319 -
during testing want dll picked local folder instead of gac. per articles on web , msdn, using devpath 1 of solutions, doesn't seem work. (i don't want change version or remove strong name - 2 alternative ways solve issue, per suggestions @ various places).
details: have productcode.dll gac-ed. made changes source code , want test that. have unit tests written in testcode.dll. however, during testing (i using vstest.console.exe on command line), assembly in gac gets picked up. want .net pick assembly in local folder instead.
i have set devpath environment variable to:
set devpath=c:\temp\nosysgac\tryingappdomainstobypassgac\testcodedllandlatestproductcodedll
i modified machine.config @ c:\windows\microsoft.net\framework\v4.0.30319\config\machine.config enable development mode:
<runtime> <developmentmode developerinstallation="true"/> </runtime>
then run tests using:
c:\path\to\vstest.console.exe testcode.dll
but fails find new method added because picks productcode.dll gac, old. can verify modified machine.config picked because application failed start when had typo in file. fusion recognizes devpath value, still doesn't there. returns assembly gac.
fusion log:
assembly manager loaded from: c:\windows\microsoft.net\framework\v4.0.30319\clr.dll running under executable c:\program files (x86)\microsoft visual studio 14.0\common7\ide\commonextensions\microsoft\testwindow\te.processhost.managed.exe --- detailed error log follows. === pre-bind state information === log: displayname = productcode, version=1.0.0.0, culture=neutral, publickeytoken=6b6a45a9f6fa2e7a (fully-specified) log: appbase = file:///c:/temp/nosysgac/tryingappdomainstobypassgac/testcodedllandlatestproductcodedll log: initial privatepath = null log: dynamic base = null log: cache base = null log: appname = te.processhost.managed.exe calling assembly : testcode, version=1.0.0.0, culture=neutral, publickeytoken=null. === log: bind starts in default load context. log: using application configuration file: c:\program files (x86)\microsoft visual studio 14.0\common7\ide\commonextensions\microsoft\testwindow\te.processhost.managed.exe.config log: using host configuration file: log: using machine configuration file c:\windows\microsoft.net\framework\v4.0.30319\config\machine.config. log: post-policy reference: productcode, version=1.0.0.0, culture=neutral, publickeytoken=6b6a45a9f6fa2e7a log: found assembly looking in gac. log: binding succeeds. returns assembly c:\windows\microsoft.net\assembly\gac_msil\productcode\v4.0_1.0.0.0__6b6a45a9f6fa2e7a\productcode.dll. log: assembly loaded in default load context.
am missing obvious here? or devpath broken in .net 4.5 too?
Comments
Post a Comment