문제 설명
현재 .NET SDK는 TFS 2015 빌드에서 .NET Core 3.0 대상 지정을 지원하지 않습니다. (The current .NET SDK does not support targeting .NET Core 3.0 on TFS 2015 build)
기존 ASP.NET Core 2.2 웹 앱을 3.0으로 마이그레이션하고 있습니다. 3.0을 지원하기 위해 .csproj 파일과 모든 참조를 업데이트했습니다. 모든 것이 내 개발 컴퓨터에서 컴파일되지만 빌드 서버(ASP.NET Core 3.0용 SDK/런타임이 있는 TFS 2015)에서 앱을 빌드하려고 하면 이 오류가 발생합니다.
The current .NET SDK does not support targeting .NET Core 3.0. Either target .NET Core 2.2 or lower, or use a version of the .NET SDK that supports .NET Core 3.0
.csproj에서 ASP.NET Core 프레임워크를 올바르게 참조했습니다.
참조 솔루션
방법 1:
After further investigation the problem was I didn't have the correct version of MSBUILD on the build server. As ASP.NET Core 3.0 only runs on VS2019 you therefore need MSBUILD for VS2019. After installing this on the build server the problem has now been resolved.