title: EntityFramework.SqlServer.dll not is getting added to the published folder only when I publish in RELEASE mode
body: <p>I know there is a problem with EF6 EntityFramework.SqlServer and included  <code>var type = typeof(System.Data.Entity.SqlServer.SqlProviderServices);</code> in context constructor. It works fine when i do publish in DEBUG mode.</p>
  
  <p>Getting the below error only when I publish in RELEASE mode. The reason is <code>EntityFramework.SqlServer.dll</code> missing in the published folder. But, bin folder has EntityFramework.SqlServer.dll for both debug and release mode.</p>
  
  <p>Error:</p>
  
  <blockquote>
    <p>The Entity Framework provider type
    'System.Data.Entity.SqlServer.SqlProviderServices,
    EntityFramework.SqlServer' registered in the application config file
    for the ADO.NET provider with invariant name 'System.Data.SqlClient'
    could not be loaded. Make sure that the assembly-qualified name is
    used and that the assembly is available to the running application.</p>
  </blockquote>
  
  <p>Why is it missing only when I publish using RELEASE mode?</p>