Home

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:

<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>
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.

Could LinqPad be made to shadow copy EntityFramework.SqlServer.dll too?

Comments

Sign In or Register to comment.