- django 엑셀불러오기
- ViewData
- asp.net Select
- asp.net dropdownlist
- javascript redirection
- 맥 오라클설치
- asp ftp
- 원격ftp
- 타임피커
- 강제이동
- 말줄임표시
- asp.net core Select
- SSD 복사
- javascript 바코드 생성
- XSS방어
- jquery 바코드생성
- 404에러페이지
- ViewBag
- simpe ftp
- 하드 윈도우 복사
- 하드 마이그레이션
- JavaScript
- XSS PHP
- swagger 500 error
- php 캐쉬제거
- Mac Oracle
- ASP.Net Core 404
- asp.net core swagger
- 바코드 생성하기
- TempData
웹개발자의 기지개
[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