.NET Core 3.1 및 EFCore 3.0으로 Azure Pipeline으로 CI 구축
C# Advent Calendar 2019 의 12/17
기사입니다.
2019/12
.NET Core 3.1 LTS가 공개되었습니다.
이것은 .NET Core 3.1은 3년간 지원 대상이 됩니다.
이번 달 자신과 관련된 프로젝트
.NET Core 2.2 ⇒3.1
EfCore 2.0 ⇒ 3.0으로 변경했습니다.
그러나 CI에서 사용하고 있는 Azure PipeLine 하지만, .NET Core 3.1 규정치로 대응하고 있지 않았기 때문에,
.NET Core 3.1에서 작동하도록 변경했습니다.
그 메모를 남겨주세요.
(2019/12/9 현재) Azure PipeLine은 .NET Core 3.0 CLI를 적용합니다.
.NET Core 3.1 앱 기본 설정에서는 CI할 수 없습니다.
EFCore 3.0부터 기본적으로 EFCore CLI가 설치되지 않았기 때문에
Migration을 실행하려면 CLI를 별도로 설치하는 단계를 수행해야 합니다.
간단하게 말하면 이하의 작업을 추가하는 것만으로 아마 CI 할 수 있게 된다고 생각합니다.
Agent job 플러스

.Use NET Core를 사용하여

버전으로 3.1.x를 지정하고 (일단 Include Preview Versions를 붙여)

이것으로 설정이 완료됩니다.
EF Core를 사용하여 DB Migration을 하려면 Command Line을 사용하기 쉽습니다.
Command Line을 Add하여

EFCore 3.0의 경우는
dotnet tool install --global dotnet-ef
를 사용하여 도구를 설치한 후 Migration Script를 실행합니다.
.NET Core 2.x의 경우 첫 번째 .Use NET Core에서
efCore CLI 도구가 원래 들어 있기 때문에
DB Migration에
dotnet tool install --global dotnet-ef
명령이 필요하지 않습니다.↓흐름으로서는 이런 느낌이 됩니다

Reference
이 문제에 관하여(.NET Core 3.1 및 EFCore 3.0으로 Azure Pipeline으로 CI 구축), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/yamuuuuuun/items/3abaef35b40df9dd4b33텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)