Microsoft MVP성태의 닷넷 이야기
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

Error MSB8020 - The build tools for v120_xp (Platform Toolset = 'v120_xp') cannot be found.

새로 설치한 Visual Studio에서 C++ 프로젝트를 컴파일했을 때 아래와 같은 식의 컴파일 오류가 발생한다면?

Error MSB8020 The build tools for v120_xp (Platform Toolset = 'v120_xp') cannot be found. To build using the v120_xp build tools, please install v120_xp build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". ... C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V150\Microsoft.Cpp.Platform.targets 57


예전에도 이에 대한 글을 한번 썼었는데요.

error MSB8008: Specified platform toolset (v120) is not installed or invalid.
; https://www.sysnet.pe.kr/2/0/1543

오류 메시지에서 발생한 "Platform Toolset"의 버전에 맞는 Visual Studio를 구해서 설치해야 합니다. 가령, 위에서는 v120_xp인데 이 버전의 빌드 도구는 Visual Studio 2013에 포함되어 있으므로 그걸 구해야 합니다. (또는 "Platform Toolset"을 새로 설치한 Visual Studio에서 제공하는 버전으로 업데이트해도 됩니다.)

참고로, "Platform Toolset"만을 맞춰주기 위해 이전 버전의 Visual Studio를 설치해야 하는 경우 다른 구성 요소는 설치할 필요가 없습니다. 제 경우에는 혹시나 싶어 "Microsoft Foundation Classes for C++" 구성 요소만 선택해 주었는데,

xp_120_1.png

해보진 않았지만 저걸 설치하지 않아도 잘 되지 않을까 예상해 봅니다.




그나저나, 가능한 Visual Studio는 버전 순으로 설치해 주는 것이 좋습니다. Visual Studio 15 Preview 버전을 설치한 다음 이 글에 쓴 컴파일 오류가 발생해서 2013 버전을 설치했더니 "속성" 창이 다음과 같은 오류 메시지와 함께 뜨질 않습니다.

An exception was encountered while constructing the content of this frame.  This information is also logged in "%APPDATA%\Microsoft\VisualStudio\15.0\ActivityLog.xml".

Exception details:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at System.Windows.Forms.PropertyGrid.RefreshProperties(Boolean clearCached)
   at System.Windows.Forms.PropertyGrid.Refresh(Boolean clearCached)
   at System.Windows.Forms.PropertyGrid.Refresh()
   at System.Windows.Forms.PropertyGrid.OnFontChanged(EventArgs e)
   at System.Windows.Forms.Control.AssignParent(Control value)
   at System.Windows.Forms.Control.ControlCollection.Add(Control value)
   at Microsoft.VisualStudio.PropertyBrowser.PropertyBrowser.CreateUI()
   at Microsoft.VisualStudio.PropertyBrowser.PropertyBrowser..ctor(IServiceProvider serviceProvider)
   at Microsoft.VisualStudio.PropertyBrowser.PropertyBrowserService.get_PropertyBrowser()
   at Microsoft.VisualStudio.PropertyBrowser.PropertyBrowserService.get_Window()
   at Microsoft.VisualStudio.Shell.WindowPane.Microsoft.VisualStudio.Shell.Interop.IVsUIElementPane.CreateUIElementPane(Object& uiElement)
   at Microsoft.VisualStudio.Platform.WindowManagement.UIElementDocumentObject.Init(Boolean initSize)
   at Microsoft.VisualStudio.Platform.WindowManagement.DocumentObjectSite.InitializeDocumentObject(Object punkView)
   at Microsoft.VisualStudio.Platform.WindowManagement.PropertyBrowserSwitcher.OnQuerySwitchPane(FrameMoniker frameMoniker)
   at Microsoft.VisualStudio.Platform.WindowManagement.ContextSwitchFrame.QuerySwitchPane(FrameMoniker frameMoniker)
   at Microsoft.VisualStudio.Platform.WindowManagement.ContextSwitchFrame.OnElementValueChanged(UInt32 elementid, Object varValueOld, Object varValueNew)
   at Microsoft.VisualStudio.Platform.WindowManagement.ContextSwitchFrame.OnToolWindowCreated()
   at Microsoft.VisualStudio.Platform.WindowManagement.PropertyBrowserSwitcher.OnToolWindowCreated()
   at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id, UInt32 flags)
   at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id, ProvideToolWindowAttribute tool)
   at Microsoft.VisualStudio.Shell.Package.FindToolWindow(Type toolWindowType, Int32 id, Boolean create, ProvideToolWindowAttribute tool)
   at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Guid& toolWindowType, Int32 id)
   at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsToolWindowFactory.CreateToolWindow(Guid& toolWindowType, UInt32 id)
   at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ConstructContent()

ActivityLog.xml 로그를 봐도 딱히 해결책이 없군요. ^^; Preview 버전이라 그냥 넘어가야겠습니다. ^^




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]







[최초 등록일: ]
[최종 수정일: 4/19/2016]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




... 106  107  108  109  110  111  112  113  114  115  116  117  118  [119]  120  ...
NoWriterDateCnt.TitleFile(s)
10946정성태4/26/201624430VS.NET IDE: 106. Visual Studio 2015 확장 - INI 파일을 위한 사용자 정의 포맷 기능 (Syntax Highlighting)파일 다운로드1
10945정성태4/26/201618170오류 유형: 327. VSIX 프로젝트 빌드 시 The "VsTemplatePaths" task could not be loaded from the assembly 오류 발생
10944정성태4/22/201619368디버깅 기술: 80. windbg - 풀 덤프 파일로부터 텍스트 파일의 내용을 찾는 방법
10943정성태4/22/201624226디버깅 기술: 79. windbg - 풀 덤프 파일로부터 .NET DLL을 추출/저장하는 방법 [1]
10942정성태4/19/201619584디버깅 기술: 78. windbg 사례 - .NET 예외가 발생한 시점의 오류 분석 [1]
10941정성태4/19/201619486오류 유형: 326. Error MSB8020 - The build tools for v120_xp (Platform Toolset = 'v120_xp') cannot be found.
10940정성태4/18/201622747Windows: 116. 프로세스 풀 덤프 시간을 줄여 주는 Process Reflection [3]
10939정성태4/18/201623771.NET Framework: 572. .NET APM 비동기 호출의 Begin...과 End... 조합 [3]파일 다운로드1
10938정성태4/13/201623323오류 유형: 325. 파일 삭제 시 오류 - Error 0x80070091: The directory is not empty.
10937정성태4/13/201631575Windows: 115. UEFI 모드로 윈도우 10 설치 가능한 USB 디스크 만드는 방법
10936정성태4/8/201642181Windows: 114. 삼성 센스 크로노스 7 노트북의 운영체제를 USB 디스크로 새로 설치하는 방법 [3]
10935정성태4/7/201626529웹: 32. Edge에서 Google Docs 문서 편집 시 한영 전환키가 동작 안하는 문제
10934정성태4/5/201625302디버깅 기술: 77. windbg의 콜스택 함수 인자를 쉽게 확인하는 방법 [1]
10933정성태4/5/201630885.NET Framework: 571. C# - 스레드 선호도(Thread Affinity) 지정하는 방법 [8]파일 다운로드1
10932정성태4/4/201623197VC++: 96. C/C++ 식 평가 - printf("%d %d %d\n", a, a++, a);
10931정성태3/31/201623460개발 환경 구성: 283. Hyper-V 내에 구성한 Active Directory 환경의 시간 구성 방법 [3]
10930정성태3/30/201621390.NET Framework: 570. .NET 4.5부터 추가된 CLR Profiler의 실행 시 Rejit 기능
10929정성태3/29/201631512.NET Framework: 569. ServicePointManager.DefaultConnectionLimit의 역할파일 다운로드1
10928정성태3/28/201637253.NET Framework: 568. ODP.NET의 완전한 닷넷 버전 Oracle ODP.NET, Managed Driver [2]파일 다운로드1
10927정성태3/25/201626489.NET Framework: 567. System.Net.ServicePointManager의 DefaultConnectionLimit 속성 설명
10926정성태3/24/201625987.NET Framework: 566. openssl의 PKCS#1 PEM 개인키 파일을 .NET RSACryptoServiceProvider에서 사용하는 방법 [10]파일 다운로드1
10925정성태3/24/201620313.NET Framework: 565. C# - Rabin-Miller 소수 생성 방법을 이용하여 RSACryptoServiceProvider의 개인키를 직접 채워보자 - 두 번째 이야기파일 다운로드1
10924정성태3/22/201620898오류 유형: 324. Visual Studio에서 Azure 클라우드 서비스 생성 시 Failed to initialize the PowerShell host 에러 발생
10923정성태3/21/201622098.NET Framework: 564. C# - DGML로 바이너리 트리 출력하는 방법 [1]파일 다운로드1
10922정성태3/21/201622484.NET Framework: 563. 디버깅 용도로 이진 트리의 내용을 출력하는 방법파일 다운로드1
10921정성태3/17/201625435.NET Framework: 562. BBI 인터프리터 C/C++ 코드를 C#으로 변환 [3]파일 다운로드2
... 106  107  108  109  110  111  112  113  114  115  116  117  118  [119]  120  ...