2017-09-21 1 views
0

코드를 작성하기 위해 TFS 2017을 사용하고 있습니다. msbuild 작업을 다음 매개 변수와 함께 사용했습니다. 요소 <publishData>은 인식 할 수 없거나이 컨텍스트에서는 지원되지 않습니다.

enter image description here

/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 에이전트에서 완벽하게 작동합니다.

+0

MSBuild 명령을 통해 수동으로 게시하면 어떻게됩니까? OneDrive에서 빌드 로그를 공유 할 수 있습니까 (온 - 프레미스 tfs 에이전트로 빌드)? –

+0

빌드/게시에 잘 작동하는 publishsettings 파일의 세부 코드는 무엇입니까? –

+0

OneDrive에서 샘플 프로젝트를 공유 할 수 있습니까? –

답변

0

내 작업 프로젝트에서 wpp 파일을 사용했고 이제는 새로운 azure 함수 프로젝트에서 동일한 wpp 파일을 사용했으며 이제는 모두 작동합니다. 그것이 실제로하는 일은 xmlpeeks publishsettings이며 msbuild 런타임에서 즉시 프로필을 게시합니다. 구현에 대한 자세한 내용을 찾을 수 있습니다. @http://sedodream.com/2013/06/05/HowToPublishAVSWebProjectWithAPublishSettingsFile.aspx

1

publishsettings 파일은 게시 프로필 파일을 생성하는 데 사용됩니다 (프로젝트 => 게시 => 가져 오기를 마우스 오른쪽 단추로 클릭). 게시 프로필에 <publishData> 섹션이 없으므로 publishsettings 파일에 있습니다.

그래서 VS를 통해 publishsettings 파일마다 프로필 파일을 생성하고이를 사용하여 웹 앱을 게시하십시오.

publish an Azure Web Site from the Command Line에 대한 기사가 있습니다.

+0

답변을 업데이트했습니다. 기본적으로 azure에서 다운로드 한 설정을 게시합니다. –

+0

프로필 만 게시하는 프로젝트가 있으며 모든 프로세스에 Visual Studio를 사용하고 싶지 않습니다. –

+0

OneDrive에서 세부 로그를 공유 할 수 있습니까? (프로필 만 게시하는 프로젝트) –

관련 문제