tooling

Automate EF Core tooling workflows for dotnet-ef CLI, PMC, and MSBuild.

14.8k|3.4k|Updated Jan 23, 2014
One-click install
npx skills add https://github.com/dotnet/efcore --skill tooling-dotnet
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tooling
Source: https://github.com/dotnet/efcore/tree/main/.agents/skills/tooling
Command: npx skills add https://github.com/dotnet/efcore --skill tooling-dotnet

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The EF Core tooling describes how to use the dotnet-ef CLI, PMC, and MSBuild tasks to manage migrations, scaffolding, and model generation during development and builds.

Core Features & Use Cases

  • Dotnet-ef CLI integration: Provides routing and execution flow for migrations, scaffolding, and model generation via the dotnet-ef command.
  • PMC commands: Exposes PowerShell commands for managing migrations and databases within the Package Manager Console.
  • MSBuild Tasks: Enables EFCore.Tasks for precompiled models and build/publish-time optimization, enabling automated code generation and advanced build flows.
  • Build Integration Flow: Coordinates build events to regenerate code when EF models change and to enable incremental builds.

Quick Start

Run a simple dotnet-ef command to validate tooling integration on your project.

Frequently Asked Questions about tooling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate EF Core migrations in a CI pipeline using the dotnet-ef CLI?

Automate EF Core migrations in CI by routing dotnet-ef CLI commands through orchestrated workflows that manage migration generation, execution, and build-time model integration for consistent usage across development and CI scenarios.

What is the difference between PMC commands and MSBuild tasks for EF Core scaffolding?

PMC commands manage migrations and databases within the Package Manager Console, while EFCore.Tasks MSBuild integration enables precompiled models and build-time code generation for automated publish-time optimization and incremental builds.

Can I use MSBuild targets to regenerate EF Core models automatically during builds?

Yes, MSBuild targets regenerate EF Core models automatically. The build integration flow coordinates build events to trigger code generation when EF models change, enabling incremental builds and precompiled model optimization.

Does EF Core tooling support both scaffolding and precompiled model generation?

EF Core tooling supports both scaffolding and precompiled model generation. It provides command routing for scaffolding via the dotnet-ef CLI and MSBuild tasks for precompiled models with build-time optimization.

Why are my EF Core migrations not applying consistently across different development environments?

Migrations may fail due to inconsistent tooling. Orchestrating EF Core workflows across the dotnet-ef CLI, PMC, and MSBuild ensures consistent command routing and module interfaces for managing migrations uniformly across environments.