성태의 닷넷 이야기
작은 글씨
큰 글씨
홈 주인
모아 놓은 자료
프로그래밍
질문/답변
사용자 관리
사용자
메뉴
아티클
외부 아티클
유용한 코드
온라인 기능
MathJax 입력기
최근 덧글
[정성태] 한국어 로컬 모델 풀 파인튜닝 - LLM 바닥부터 만들기 (대형...
[정성태] 그러고 보니, 저도 노안이라서... 어느 순간부터 웹 브라우저 ...
[정성태] The case of the invalid handle erro...
[정성태] 해당 글을 잠시 읽어보니까, 그 글에 답이 잘 나오는군요. ^^...
[정성태] Stating the obvious about debugging...
[정성태] https://www.c-sharpcorner.com/artic...
[정성태] How can I detect if one of my helpe...
[정성태] 32비트 값을 64비트 레지스터에 넣을 때, 상위 32비트에 대...
[정성태] 본문에서 상위 8바이트의 16비트가 사용되지 않는 것을 볼 수 ...
[정성태] 한 번도 궁금한 적이 없었는데, If I mark my t...
글쓰기
제목
이름
암호
전자우편
HTML
홈페이지
유형
제니퍼 .NET
닷넷
COM 개체 관련
스크립트
VC++
VS.NET IDE
Windows
Team Foundation Server
디버깅 기술
오류 유형
개발 환경 구성
웹
기타
Linux
Java
DDK
Math
Phone
Graphics
사물인터넷
부모글 보이기/감추기
내용
<div style='display: inline'> <h1 style='font-family: Malgun Gothic, Consolas; font-size: 20pt; color: #006699; text-align: center; font-weight: bold'>ASP.NET Core 배포 오류 - Ensure that restore has run and that you have included '...' in the TargetFrameworks for your project.</h1> <p> .NET Framework 기반의 ASP.NET Core 프로젝트를 Platform target을 x64로 맞춰놓고 배포하는 경우 다음과 같은 오류가 발생할 수 있습니다.<br /> <br /> <div style='BACKGROUND-COLOR: #ccffcc; padding: 10px 10px 5px 10px; MARGIN: 0px 10px 10px 10px; FONT-FAMILY: Malgun Gothic, Consolas, Verdana; COLOR: #005555'> Error Assets file 'F:\WebApplication1\WebApplication2\obj\project.assets.json' doesn't have a target for '.NETFramework,Version=v4.6.1/win7-x86'. Ensure that restore has run and that you have included 'net461' in the TargetFrameworks for your project. You may also need to include 'win7-x86' in your project's RuntimeIdentifiers. WebApplication2 C:\Program Files (x86)\dotnet\sdk\2.0.0\Sdks\Microsoft.NET.Sdk\build\Microsoft.PackageDependencyResolution.targets 165 <br /> </div><br /> <br /> 또는 x86인 Platform target을 x64로 교체할 때 다음과 같은 오류가 발생할 수 있습니다.<br /> <br /> <div style='BACKGROUND-COLOR: #ccffcc; padding: 10px 10px 5px 10px; MARGIN: 0px 10px 10px 10px; FONT-FAMILY: Malgun Gothic, Consolas, Verdana; COLOR: #005555'> Could not resolve mscorlib for target framework '.NETFramework,Version=v4.6.1'. This can happen if the target framework is not installed or if the framework moniker is incorrectly formatted.<br /> <br /> A diagnostic log has been written to the following location: "%LOCALAPPDATA%\Temp\VsProjectFault_6a426165-170b-469e-a2b1-3b690f7c907d.failure.txt".<br /> </div><br /> <br /> 이를 해결하려면, Visual Studio의 "Configuration Manager" 설정까지도 "AnyCPU"가 아닌 "x64"로 맞춰야 합니다.<br /> <br /> <img alt='conf_manager_1.png' src='/SysWebRes/bbs/conf_manager_1.png' /><br /> <br /> 만약 이렇게 맞춰도 오류가 계속된다면 Publish 설정(Settings) 메뉴를 선택해,<br /> <br /> <img alt='conf_manager_2.png' src='/SysWebRes/bbs/conf_manager_2.png' /><br /> <br /> "Configuration"이 AnyCPU가 아닌 x64로 되어 있는지 확인해야 합니다.<br /> <br /> <img onclick='toggle_img(this)' class='imgView' alt='conf_manager_3.png' src='/SysWebRes/bbs/conf_manager_3.png' /><br /> </p><br /> <br /><hr /><span style='color: Maroon'>[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]</span> </div>
첨부파일
스팸 방지용 인증 번호
1687
(왼쪽의 숫자를 입력해야 합니다.)