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

error MSB4044: The "ValidateValidArchitecture" task was not given a value for the required parameter "RemoteTarget"

이런 오류가 발생한다면?

_ValidateCompatibleRemoteArchitectures:
  Validating architecture
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Application Type\Linux\1.0\Linux.targets(203,5): error MSB4044: The "ValidateValidArchitecture" task was not given a value for the required parameter "RemoteTarget". [C:\temp\ConsoleApp1.vcxproj]
Done Building Project "C:\temp\ConsoleApp1.vcxproj" (Rebuild target(s)) -- FAILED.


Build FAILED.

"C:\temp\ConsoleApp1.vcxproj" (Rebuild target) (1) ->
(_ValidateValidArchitecture target) ->
  C:\...[생략]...\Linux.targets(203,5): error MSB4044: The "ValidateValidArchitecture" task was not given a value for the required parameter "RemoteTarget". [C:\temp\ConsoleApp1.vcxproj]

명령행 또는 vcxproj에 포함한 RemoteTarget 속성이 올바른 원격 PC를 가리키지 않아서 그런 것입니다. 예를 들어 빌드 명령어에서,

c:\temp> msbuild "C:\temp\ConsoleApp1.vcxproj" /p:RemoteTarget=1144067422 /p:Platform=ARM64;Configuration=Release; /t:Rebuild

위와 같이 지정했다면 1144067422에 해당하는 원격 PC가 등록돼 있어야 합니다.

c:\temp> ConnectionManager.exe list
Reading stored connections from '%USERPROFILE%\AppData\Local\Microsoft\Linux\User Data\3.0\store.xml'

Connection ID |            Host | Username | Port | Authentication Type
-----------------------------------------------------------------------
  -1204116193 |  192.168.100.50 |    testp |   22 | Password

위의 환경에서는 "-1204116193" ID에 해당하는 것만 있는 건데요, 따라서 원하는 빌드 서버를 우선 등록해 줘야 합니다.

c:\temp> ConnectionManager.exe add testp@192.168.100.51 --port 22 --privatekey "%USERPROFILE%\.ssh\test_ec"
...[생략]...
Successfully added connection '1252706199;192.168.100.51 (username=testp, port=22, authentication=PrivateKey)'.

(등록 이후에만 확인할 수 있는) 저 번호를 새롭게 RemoteTarget의 인자로 전달하면 빌드가 성공적으로 될 것입니다.

c:\temp> msbuild "C:\temp\ConsoleApp1.vcxproj" /p:RemoteTarget=1252706199 /p:Platform=ARM64;Configuration=Release; /t:Rebuild




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







[최초 등록일: ]
[최종 수정일: 12/11/2024]

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

비밀번호

댓글 작성자
 




... 151  152  153  154  155  156  157  158  159  160  161  162  163  [164]  165  ...
NoWriterDateCnt.TitleFile(s)
1070정성태6/19/201134824.NET Framework: 222. Windows Azure - VM Role 베타 프로그램 참여 [2]
1069정성태6/18/201135234.NET Framework: 221. Cache 영향을 받지 않는 DNS 이름 풀이 [2]파일 다운로드1
1068정성태6/16/201132367개발 환경 구성: 127. Portable Library - 닷넷 N-Screen용 공통 라이브러리 제작 [1]
1067정성태6/15/201132123오류 유형: 126. Windows failed to apply the Group Policy Folder Options settings. [1]
1066정성태6/14/201135446개발 환경 구성: 126. MSDN 구독자 - Windows Azure 무료 서비스 신청하는 방법 [4]
1065정성태6/13/201139999개발 환경 구성: 125. Firebird - 유니코드 기본 문자셋 지정
1064정성태6/11/201134225웹: 22. Visual Studio 2010에서 CSS 3 인텔리센스(intellisense) 지원하는 방법 [1]
1063정성태6/10/201136285웹: 21. Sysnet 웹 사이트의 CSS 2.1 변환 기록 [1]
1062정성태6/9/201136020웹: 20. Sysnet 웹 사이트의 HTML5 변환 기록 [1]
1061정성태6/8/201134766오류 유형: 125. 인터넷 익스플로러 - 개발자 도구에서 정지점(BP: Breakpoint) 설정이 안 되는 경우 [1]
1060정성태6/8/201131245VC++: 51. PHP 모듈의 F5 디버깅
1059정성태6/6/201136175VC++: 50. PHP 모듈 - php_mysql 빌드하는 방법파일 다운로드1
1058정성태6/5/201140291개발 환경 구성: 124. .NET 개발자가 처음 해보는 PHP + MySQL 연동 [2]
1057정성태6/4/201137657VC++: 49. 소스 코드로부터 php5apache2_2.dll 생성하는 방법파일 다운로드1
1056정성태6/2/201136069VC++: 48. 윈도우에서 Apache Module - Content Handler 컴파일파일 다운로드1
1055정성태6/1/201133121오류 유형: 124. MVC 프로젝트의 Site.Master 관련 오류 정리
1054정성태5/31/201136270.NET Framework: 220. ASP.NET MVC Web Site 프로젝트 - 단위 테스트 작성파일 다운로드1
1053정성태5/31/201139369VC++: 47. Apache Module에 대한 'F5 디버그 (Start with debugging)' [2]
1052정성태5/30/201136747.NET Framework: 219. ASP.NET MVC Web Site 프로젝트 구성하기파일 다운로드1
1051정성태5/28/201145331VC++: 46. 윈도우에서 Apache Module 컴파일 (VC++)파일 다운로드1
1050정성태5/28/201131112오류 유형: 123. Firebird - Exception of type 'FirebirdSql.Data.Common.IscException' was thrown.
1049정성태5/28/201136891.NET Framework: 218. WCF REST 서비스 - 웹 브라우저 측 Ajax 호출 캐시 [1]
1048정성태5/27/201139161개발 환경 구성: 123. Apache 소스를 윈도우 환경에서 빌드하기
1047정성태5/27/201132092.NET Framework: 217. Firebird ALinq Provider - 날짜 필드에 대한 낙관적 동시성 쿼리 오류
1046정성태5/26/201137612.NET Framework: 216. 라이선스까지도 뛰어넘는 .NET Profiler [5]
1045정성태5/24/201138030.NET Framework: 215. 닷넷 System.ComponentModel.LicenseManager를 이용한 라이선스 적용 [1]파일 다운로드1
... 151  152  153  154  155  156  157  158  159  160  161  162  163  [164]  165  ...