KEMBAR78
Optimize EF6 to work with PackageReference and no app.config · Issue #189 · dotnet/ef6 · GitHub
Skip to content

Optimize EF6 to work with PackageReference and no app.config #189

@ErikEJ

Description

@ErikEJ

(Edited by @divega. Re-purposing this issue to detail the current action plan on this area. The original text of the issue was kept at the bottom)

We had a discussion with the NuGet team on what we can do to adapt the EF6 package to a world in which more customers use NuGet's PackageReference and Install.ps1 doesn't execute anymore and in which potentially package.config is discouraged or even disabled in the long term. Here are a few things we want to make sure are enabled:

  • No breaking change: Application with existing EF6 entries in app.config should continue to work based on the existing configuration when upgrading
  • F5 experience works: New applications that download the EF6 package without app.config should be able to work out of the box with (e.g. F5 experience) SQL Server, likely assuming (localdb)\mssqllocaldb instance. This may required changes to default provider and connection factory registration
  • Works for other providers: New applications that download an EF6-based provider package should be able to work easily
  • Commands advertising: Since install.ps1 won't run, we won't be able to display a banner telling customers about the available commands. Should we resort to a readme.txt file instead? This actually affects EFCore tools as well (Not needed)
  • T4 template distribution: Currently we use NuGet packages (entityframework.codetemplates.csharp and entityframework.codetemplates.visualbasic) to distribute customizable versions of the T4 templates for the "code first from an existing database" option in the EF6 designer. We would need to have alternative ways to distribute them, e.g. add them as item templates in the designer's setup, or point customers to the code in docs, github, etc. (Moved to Update VS Tools to work with SDK-style projects #883)

@bricelam @ajcvickers please add any details I missed.


[VS2017RC3] No app.config created when using "packageReference" iso packages.config

File, New Project, Console Appliation, Target .NET 4.0, add EntityFramework package, use PackageReference,

Result: app.config file with EF settings created

Actual: no app.config file at all... Causing EF to fail completely

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions