MSB4211

Posted by Programmer™
2023. 11. 21. 06:30 카테고리 없음

 

 

C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Analysis.props(24,5): warning MSB4211: "MsvcAnalysisPluginPath" 속성에 처음으로 값이 설정되고 있지만 이미 "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CodeAnalysis.Extensions.props(33,5)"에서 사용되었습니다.

 

 

Visual Studio 2008 로 작성된 프로그램을 2022 버전 (v17.5.5)으로 마이그레이션을 하면서 위 메시지를 보게 되었습니다.

 

Microsoft Visual Studio Enterprise 2022 (64-bit) - Current 버전 17.5.5

 

검색해보니 해외 다른 사용자도 이미 똑같은 문제를 겪고 있었습니다.

 

https://developercommunity.visualstudio.com/t/warning-MSB4211:-The-property-MsvcAnaly/10355210?q=parameter+to+a+template+the+boolean+value+is+being+converted+to+a+string

 

warning MSB4211: The property MsvcAnalysisPluginPath is...

<p>[severity:It bothers me. A fix would be nice] Application: Microsoft Visual Studio 2022 Version 17.5.5</p> <p>The message <vsroot>MSBuild\Microsoft...

developercommunity.visualstudio.com

 

그런데 Solution 이 없습니다.

 

결국 혼자서 해결방법을 찾았습니다.

 

마이그레이션 후 구성관리자를 확인해보니 Release 만 있고 Debug 가 보이지 않는 것입니다.

 

vcxproj 파일을 수작업으로 편집해서 Debug 절을 추가해주었습니다.

 

그리고 저장후 다시 빌드 작업을 했더니 더이상 위 메시지는 나오지 않습니다.

 

 

 

$(SolutionDir)$(Configuration)\
$(Configuration)\
$(ProjectName)