- 하드 윈도우 복사
- asp ftp
- ViewBag
- asp.net Select
- 타임피커
- JavaScript
- javascript 바코드 생성
- php 캐쉬제거
- 말줄임표시
- 맥 오라클설치
- 404에러페이지
- XSS방어
- javascript redirection
- Mac Oracle
- asp.net core Select
- SSD 복사
- 바코드 생성하기
- swagger 500 error
- asp.net dropdownlist
- asp.net core swagger
- 강제이동
- 하드 마이그레이션
- simpe ftp
- 원격ftp
- jquery 바코드생성
- XSS PHP
- ViewData
- django 엑셀불러오기
- TempData
- ASP.Net Core 404
웹개발자의 기지개
[ASP.Net Core] Your target project 'FastFood.Web' doesn't match your migrations assembly 'FastFood.Repository'. Either change your target project or change your migrations assembly. 본문
[ASP.Net Core] Your target project 'FastFood.Web' doesn't match your migrations assembly 'FastFood.Repository'. Either change your target project or change your migrations assembly.
웹개발자 워니 2023. 1. 26. 06:36Your target project 'FastFood.Web' doesn't match your migrations assembly 'FastFood.Repository'. Either change your target project or change your migrations assembly.
Change your migrations assembly by using DbContextOptionsBuilder. E.g. options.UseSqlServer(connection, b => b.MigrationsAssembly("FastFood.Web")). By default, the migrations assembly is the assembly containing the DbContext.
Change your target project to the migrations project by using the Package Manager Console's Default project drop-down list, or by executing "dotnet ef" from the directory containing the migrations project.
패키지 관리자 콘솔 상에서 마이그레이션을 시도할때 위와 같은 에러메세지를 만났다.


간단한 해결책은 패키지 관리자 콘솔 상에서 기본프로젝트를 FastFood.Repository 프로젝트 ( 필자의 코드상으로 DbContext 가 있는 프로젝트) 로 변경하고 다시 마이그레이션을 시도하였다.
Install-Package Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore
Add-Migration 스키마이름명
Update-Database
참고 : https://www.youtube.com/watch?v=N9X0aWcs78M
참고 : https://learn.microsoft.com/ko-kr/aspnet/core/security/authentication/scaffold-identity?view=aspnetcore-6.0&tabs=visual-studio
