Monday, June 28, 2010

XCopy between two folders

xcopy source destination /E = All files and directories including empty ones

xcopy d:\rs\pf d:\projects\PF /E

Thursday, June 17, 2010

Two Versions of private assembly in the same application

When migrating the application we had an issue with log4net some of the modules used log4net based on the .NET framework 1.1 and other used .NET framework 2.0. The problem was since both the filenames were log4net.dll how do we put them in the same folder.

We then made use of the assembly dependency property of CLR to place these assemblies in two different folders and then give instruction to the clr on how to load them.


<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="log4net"
publicKeyToken="1b44e1d426115821"
culture="neutral" />
<codeBase version="1.2.10.0"
href="bin\log4net\v1210\log4net.dll"/>
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="log4net"
publicKeyToken="b32731d11ce58905"
culture="neutral" />
<codeBase version="1.2.9.0"
href="bin\log4net\v1209\log4net.dll"/>
</dependentAssembly>
</assemblyBinding>
</runtime>