사용 방법
- 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
- 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
- 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/dotnet/efcore --skill tooling시작 전 확인
- 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
- 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.
Tooling
The dotnet ef CLI and Visual Studio Package Manager Console commands for migrations, scaffolding, and compiled models.
dotnet-ef CLI (src/dotnet-ef/)
RootCommand parses global options. Subcommands implemented in src/ef/Commands/. Each invokes MSBuild to build, then shells out via dotnet exec ef.dll, which hosts OperationExecutor.
PMC (src/EFCore.Tools/)
PowerShell module: Add-Migration, Update-Database, Scaffold-DbContext, Optimize-DbContext, etc.
MSBuild Tasks (src/EFCore.Tasks/)
NuGet package Microsoft.EntityFrameworkCore.Tasks provides build/publish-time compiled model and precompiled query generation. Targets in buildTransitive/Microsoft.EntityFrameworkCore.Tasks.targets.
Command Option Ownership
Trace an option to the code that consumes it before changing command or operation contracts. The outer dotnet-ef launcher builds the project and forwards remaining command-line arguments to ef.dll; the inner command under src/ef/Commands/ parses command-specific options.
- Keep presentation-only behavior in the inner command. For example, suppressing the completion message from
MigrationsAddCommand.Execute()should guard itsReporter.WriteInformation()call and must not changeIOperationExecutor.AddMigration(). - Forward a value through
OperationExecutorBaseonly when the design-time operation inMicrosoft.EntityFrameworkCore.Designneeds it. - Treat PMC and
EFCore.Tasksas separate entry points. Change them only when the requested behavior applies to those surfaces too.
Testing
- CLI tests:
test/dotnet-ef.Tests/,test/ef.Tests/ - EFCore.Tasks has no dedicated test project — for task/target changes, create a test project and manually run
dotnet build/dotnet publishwithEFOptimizeContext=trueto verify
Validation
- For tool changes, create a test project and manually run affected commands to verify behavior
dotnet ef migrations scriptoutput matches expected DDL



