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

msbuild - The BaseOutputPath/OutputPath property is not set for project '[...].vcxproj'

리눅스용 C++ 프로젝트를 빌드했는데,

D:\Test> msbuild.exe "libTest.vcxproj" /p:Platform=x64;Configuration=Release; /t:Rebuild
Microsoft (R) Build Engine version 17.1.0+ae57d105c for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 2022-03-02 오후 3:07:30.
Project "D:\Test\libTest.vcxproj" on node 1 (Rebuild target(s)).
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(823,5): error: The BaseOutputPath/OutputPath property is not set for project 'libTest.vcxproj'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Release' Platform='x64'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project. [D:\Test\libTest.vcxproj]
Done Building Project "D:\Test\libTest.vcxproj" (Rebuild target(s)) -- FAILED.

Build FAILED.

"D:\Test\libTest.vcxproj" (Rebuild target) (1) ->
(_CheckForInvalidConfigurationAndPlatform target) ->
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(823,5): error : The BaseOutputPath/OutputPath property is not set for project 'libTest.vcxproj'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Release' Platform='x64'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project. [D:\Test\libTest.vcxproj]

0 Warning(s)
1 Error(s)


보는 바와 같이 "The BaseOutputPath/OutputPath property is not set for project '[...].vcxproj'" 오류가 발생합니다. 전에도 한번 이런 적이 있었는데,

Visual Studio 빌드 실패 - The OutputPath property is not set for project
; https://www.sysnet.pe.kr/2/0/11162

이번과는 상황이 다르군요. ^^; 오류 메시지만으로는 solution을 함께 지정해 빌드하면,

msbuild MyProduct.sln -t:libTest:Rebuild /p:Platform=x64;Configuration=Release

해결될 것처럼 나오지만 여전히 오류에는 변화가 없습니다. 특이한 점이라면, 해당 빌드를 수행한 머신은 "Build Tools"만을 설치한 서버였다는 점입니다.

Build Tools for Visual Studio 2022
; https://aka.ms/vs/17/release/vs_BuildTools.exe

재미있는 것은, "Build Tools"가 비주얼 스튜디오의 모든 구성 요소를 포함하고 있지는 않다는 점입니다. 즉, "Build Tools"만을 설치한 환경에는 Visual Studio의 경우 포함하고 있는 "Linux and embedded development with C++" 구성 요소가,

build_tools_linux_dev_1.png

없는데요, 아마도 이 영향 때문에 빌드 시 저런 오류가 발생하는 듯합니다. 실제로 해당 머신에 비주얼 스튜디오를 설치하면 동일한 빌드 명령어가 아무런 오류 없이 잘 실행됩니다.




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







[최초 등록일: ]
[최종 수정일: 3/2/2022]

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

비밀번호

댓글 작성자
 




... 196  197  198  199  [200]  201  202 
NoWriterDateCnt.TitleFile(s)
58정성태10/3/200429976.NET Framework: 11. HttpContext의 간략이해
56정성태10/3/200426583.NET Framework: 10. [.NET 리모팅] 원격개체를 호출한 클라이언트의 연결이 유효한지 판단하는 방법.
55정성태10/3/200427113COM 개체 관련: 11. 내가 생각해 보는 COM의 현재 위치
54정성태8/30/200432835VC++: 10. 내가 생각해 보는 MFC OCX와 ATL DLL에 선택 기준
53정성태11/20/200532027VC++: 9. CFtpFileFind/FtpFileFind가 일부 Unix FTP 서버에서 목록을 제대로 못 가져오는 문제
184정성태11/23/200525233    답변글 VC++: 9.1. FTP 관련 토픽파일 다운로드1
51정성태6/24/200430781VC++: 8. BSTR 메모리 할당 및 해제(MSDN Library 발췌) [1]
50정성태6/16/200424047기타: 6. 1차 데스크톱 컴퓨터 사양
49정성태6/16/200424398기타: 5. 53만 원대 Second PC 마련. ^^
48정성태3/2/200426158.NET Framework: 9. 윈도우즈 발전사를 모아 둔 사이트. [1]
47정성태11/14/200524591VS.NET IDE: 7. 한글 OS에서 Internet Explorer 6.0 with SP1의 UI 언어 바꾸는 방법
45정성태1/26/200423902기타: 4. MCAD 시험
44정성태1/26/200424780VS.NET IDE: 6. 터미널 서비스 포트 변경 ( 서버 및 클라이언트 )
46정성태1/26/200429850    답변글 VS.NET IDE: 6.1. Windows 2003 터미널 서비스 라이센스 서버 없이 접속
114정성태11/14/200520847    답변글 VS.NET IDE: 6.2. [터미널 서버 라이센스] : 활성화 시 오류
43정성태12/23/200324715기타: 3. XP/2003 개인 방화벽 설정파일 다운로드1
40정성태7/23/200328104COM 개체 관련: 10. IE BHO 개체를 개발할 때, 인터넷 익스플로러가 아닌 탐색기에서 활성화 되는 문제 해결 [1]
41김성현7/24/200326944    답변글 COM 개체 관련: 10.1. [답변]: IE BHO 개체를 개발할 때, 인터넷 익스플로러가 아닌 탐색기에서 활성화 되는 문제 해결
42정성태7/29/200324757        답변글 COM 개체 관련: 10.2. feedback 을 받기 위해서 답변 기능을 가능하게 해두었습니다.
39정성태7/17/200330659VS.NET IDE: 5. 원격 제어 3가지 방법
38정성태7/17/200326927.NET Framework: 8. IIS 서버 재설치와 ASP.NET 서비스의 문제점
36정성태7/17/200327735.NET Framework: 7. 시행착오 - WebService 참조 추가 오류
35정성태7/17/200328266.NET Framework: 6. Win2000에서의 .NET COM+ 자동 등록 오류 발생 해결
34정성태7/17/200326842VS.NET IDE: 4. VC++ 원격 디버깅파일 다운로드1
33정성태7/17/200327087VS.NET IDE: 3. Win2000 NAT 서비스
32정성태7/17/200328406COM 개체 관련: 9. _bstr_t, CComBSTR, string 클래스 사용 [1]
... 196  197  198  199  [200]  201  202