코드를 작성하기 위해 TFS 2017을 사용하고 있습니다. msbuild 작업을 다음 매개 변수와 함께 사용했습니다. 요소 <publishData>은 인식 할 수 없거나이 컨텍스트에서는 지원되지 않습니다.
/p:DeployOnBuild=true /p:AllowedReferenceRelatedFileExtensions=none /p:PublishProfile="$(Build.SourcesDirectory)\Source\PublishSettings\xxx.azurewebsites.net.publishsettings" /p:VisualStudioVersion=14.0 /p:Configuration=Release
은 로그 :
2017-12-27T07:43:15.6823390Z Publish Pipeline Deploy phase Stage PipelineCopyAllFilesToOneFolderForMsdeploy
2017-12-27T07:43:15.6823390Z Package:
2017-12-27T07:43:15.6823390Z Invoking Web Deploy to generate the package with the following settings:
2017-12-27T07:43:15.6979640Z $(LocalIisVersion) is 0
2017-12-27T07:43:15.6979640Z $(DestinationIisVersion) is 0
2017-12-27T07:43:15.6979640Z $(UseIis) is True
2017-12-27T07:43:15.6979640Z $(IisUrl) is http://localhost:7372/
2017-12-27T07:43:15.6979640Z $(IncludeIisSettings) is False
2017-12-27T07:43:15.6979640Z $(_DeploymentUseIis) is False
2017-12-27T07:43:15.6979640Z $(DestinationUseIis) is False
2017-12-27T07:43:15.6979640Z GetMSDeployInstalledVersionPath:
2017-12-27T07:43:15.6979640Z $(_DefaultMSDeployMaxVersion) is 3
2017-12-27T07:43:15.6979640Z $(_MSDeployVersionsToTry) is 9.0
2017-12-27T07:43:15.6979640Z $(MSDeployPath) is C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\
2017-12-27T07:43:15.6979640Z GenerateMsdeployManifestFiles:
2017-12-27T07:43:15.6979640Z Generate source manifest file for Web Deploy package/publish ...
나는 아래의 오류가 발생했습니다.
The element <publishData> is unrecognized, or not supported in this context
나는 나의 푸른에서 다운로드 설정을 게시, 그것은 비주얼 스튜디오 배포와 완벽하게 잘 작동 테스트. 내 웹 API 프로젝트는 .Net 4.6.1입니다.
참고 :이 프로젝트 만 제대로 구축되지 않으며, .Net 4.5.1의 다른 모든 프로젝트가 구축되어 있으므로 사내 구축 형 tfs 에이전트에서 완벽하게 작동합니다.
MSBuild 명령을 통해 수동으로 게시하면 어떻게됩니까? OneDrive에서 빌드 로그를 공유 할 수 있습니까 (온 - 프레미스 tfs 에이전트로 빌드)? –
빌드/게시에 잘 작동하는 publishsettings 파일의 세부 코드는 무엇입니까? –
OneDrive에서 샘플 프로젝트를 공유 할 수 있습니까? –