EF Core 11 introduces dotnet-ef.json to set repository-level CLI defaults
EF Core 11 introduces support for a .config/dotnet-ef.json file that lets teams define default values for frequently repeated dotnet ef command-line options such as --project, --startup-project, --framework, and --context. The tool walks up the directory tree from the current working directory and applies the nearest matching config file, with explicit command-line arguments always taking precedence. This addresses a longstanding pain point in multi-project solutions where mismatched or missing arguments across CI scripts, READMEs, and developer machines could cause migration files to land in the wrong project. Relative paths in the config file are resolved against the directory containing the .config folder, not the working directory. Only the nearest config file is used, with no merging across directory levels.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in