문제 설명
오류: 프로젝트의 기본 XML 네임스페이스는 MSBuild XML 네임스페이스여야 합니다. (Error: The default XML namespace of the project must be the MSBuild XML namespace)
저는 grunt msbuild를 사용하여 프로젝트를 빌드합니다. 그런트를 실행하면 다음 오류가 발생합니다.
오류: 프로젝트의 기본 XML 네임스페이스는 MSBuild XML 네임스페이스여야 합니다. 프로젝트가 MSBuild 2003 형식으로 작성된 경우 요소에 xmlns="http://schemas.microsoft.com/developer/msbuild/2003"을 추가하십시오. 프로젝트가 이전 1.0 또는 1.2 형식으로 작성된 경우 MSBuild 2003 형식으로 변환하십시오.
프로젝트에는 이미 이 네임스페이스가 있습니다.
The 프로젝트는 vs2019 및 .net 4.7.2에서 작성되었습니다.
grunt의 출력은 다음과 같습니다.
"copy:bacon"(복사) 작업 실행 7개의 디렉토리 생성, 복사 16개 파일
"zip: SqlServerCE.4.0.0.1\build\Umbraco.SqlServerCE.targets 경고: "nugetpack:dist" 작업이 실패했습니다. 계속하려면 ‑‑force를 사용하세요.
경고로 인해 중단되었습니다.
프로젝트 파일의 일부를 잘라내면 다음과 같습니다.
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
참조 솔루션
방법 1:
Ok figured this out after paying more attention to the error message. In packages\Umbraco.SqlServerCE.4.0.0.1\build\Umbraco.SqlServerCE.targets it needed the namepsace i added it there and now it builds.
Issue now is figuring out how to get updated package for that dependancy
방법 2:
I just wanted to expand on Ismail's answer.
His solution is correct however if you are wondering on how to add the namespace and get it running the file should look like this: