Shadow-copying a dynamically-loaded assembly
I have a query connected to an EntityFramework DbContext connection with a custom entity model assembly and config file.
The build output for the entity model assembly includes EntityFramework.dll and EntityFramework.SqlServer.dll. The latter does is not statically referenced by EntityFramework, however it is required by the config file, which includes:
Could LinqPad be made to shadow copy EntityFramework.SqlServer.dll too?
The build output for the entity model assembly includes EntityFramework.dll and EntityFramework.SqlServer.dll. The latter does is not statically referenced by EntityFramework, however it is required by the config file, which includes:
It appears that LinqPad 5 is shadow copying my entity model assembly and EntityFramework.dll, but is not shadow copying EntityFramework.SqlServer.dll and is accessing the copy in the original folder, which is blocking me from updating it.
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
<providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
</providers>
</entityFramework>
Could LinqPad be made to shadow copy EntityFramework.SqlServer.dll too?
Comments
FWIW my current work-around is on the deployment side - when updating my binaries I rename EntityFramework.SqlServer.dll before deleting it. That way the zombie file - still in use by LinqPad - doesn't get in the way of the new copy.
http://www.linqpad.net/download.aspx#beta