반응형
빌드하는 동안 Microsoft.Common.Targets에 "잘못된 자식 요소가 있습니다."경고
내 VS2010에서 솔루션을 빌드 할 때 Microsoft.Common.Targets 파일에 100 개가 넘는 경고가 있습니다. 프로그램을 빌드, 게시 또는 실행하려고하면 경고 만 표시되지만 더 많은 정보를 얻기 위해 두 번 클릭하면 Microsoft.Common.Targets가 팝업되고 경고 메시지가 모두 표시됩니다.
이 Microsoft.Common.Targets 파일은 .net 프레임 워크의 일부이며 MSBuild 내장 대상 등이 있습니다. 속성 창에 적절한 스키마가 연결되어 있습니다.
몇 가지 경고 예 (100 개 중 2 개) :
Warning 2 The element 'PropertyGroup' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 'CustomBeforeMicrosoftCommonTargets' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. List of possible elements expected: 'Property' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets 22 10 Miscellaneous Files
Warning 3 The element 'PropertyGroup' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element '_OriginalConfiguration' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. List of possible elements expected: 'Property' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets 60 10 Miscellaneous Files
이 파일이 내 프로젝트의 일부가 아닌 경우 편집기에서 갑자기 나타나는 이유와 빌드하는 동안 Visual Studio에이 프레임 워크 파일을 무시하도록 지시하는 방법입니다.
모든 편집기 창을 닫은 다음 빌드하면 모든 경고가 사라졌습니다! Visual Studio를 닫고 다시 시작해도 문제가 해결되지는 않았지만 Microsoft.Common.Targets를 포함하여 편집기 창에서 모든 파일을 닫으면 문제가 해결되었습니다. Arghhh Microsoft !!
이 링크를 살펴본 후 이것을 발견했습니다.
http://social.msdn.microsoft.com/Forums/en/Vsexpressvb/thread/31f52b76-b0de-406d-9c25-2f329dd7cf1c
2013 및 2015 버전에서도 작동합니다.
반응형
'IT박스' 카테고리의 다른 글
Django 대 모델 뷰 컨트롤러 (0) | 2020.08.15 |
---|---|
ng-app 지시문의 배치 (html vs body) (0) | 2020.08.15 |
Xcode 4.2 및 iOS 5 SDK를 사용할 때 이전 iOS 버전을 타겟팅 할 수 있습니까? (0) | 2020.08.15 |
Fiddler를 사용하여 WCF 서비스를 모니터링하는 방법 (0) | 2020.08.15 |
.csv 파일을 R로 읽으려고 할 때 '불완전한 마지막 줄'경고 (0) | 2020.08.15 |