2012-12-10 5 views
3

, 나는 빌드 정의 편집기에서이 속성을 발견 -> 프로세스 -> 빌드 프로세스 매개 변수 -> 6. 출판 - - 푸른 웹 사이트> 웹 배포 프로필을 게시 : enter image description here"Web Deploy Publish Profile"속성은 무엇에 사용됩니까? TFS 탐색기에서

내가 다운로드 프로필을 게시하지만, TFS는 다음과 같은 오류를보고 구축 :

Overall Build Process
Update Build Number
Run On Agent (reserved build agent Hosted Build Agent)
Create Workspace
Get Workspace
Create Label
Compile, Test, and Associate Changesets and Work Items
Compile and Test
Fetch Azure Web Site Publish Profile
Run MSBuild for Project
Built $/myproj/myproj/myproj.sln for default targets.
Built $/myproj/myproj/myproj/myproj.csproj for default targets.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets (4435): The value for PublishProfile is set to 'myproj.azurewebsites.net', expected to find the file at 'C:\a\src\myproj\myproj\myproj\Properties\PublishProfiles\myproj.azurewebsites.net' but it could not be found.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets (4449): Target ValidatePublishProfileSettings Failed MSBuild Log File
Handle Exception
Create Work Item
Associate Changesets and Work Items
Exception Message: MSBuild error 1 has ended this build. You can find more specific information about the cause of this error in above messages. (type BuildProcessTerminateException)
Exception Stack Trace:
at System.Activities.Statements.Throw.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
Drop Files to Drop Location
Work item '4: Build Failure in Build: myproj_2012-55-10_07-55.1' was opened by the build.

답변

3

비슷한 문제가 있었는데 실제로 빌드 설정에 많은 문서가 없습니다. 귀하의 스크린 샷에서 .publishsettings 파일을 사용하고 있지만이 파일을 사용할 수없는 대신, .pubxml 파일이 필요하다고 생각합니다. 당신은 프로필 탭 가져 오기를 선택에 게시 마법사를 볼 수

  • 을 프로젝트를 클릭하고 게시 (또는 웹 사이트를 게시)하고 파일에서 다운로드를 선택 :

    이 시도 하늘빛 문입니다.

  • 마법사를 닫습니다. (나는 처음 수동으로 출판했는데, 그럴 필요는 없다.) 이 시점에서 Visual Studio는 3 개의 .pubxml 파일을 생성해야합니다. 하나는 webdeploy 용이고 다른 하나는 ftp 용입니다.
  • 이 파일을 어딘지에서 소스 제어로 확인하십시오.
  • 질문의 첫 번째 스크린 샷에서 6 단계의 소스 제어 폴더 위치를 사용하여 파일을 선택하십시오.

호프가 도움이 되었기 때문에 그것을 해결했습니다.

0

'C : \ \ SRC \의 Myproj \의 Myproj \의 Myproj \ 등록 \ PublishProfiles \ myproj.azurewebsites.net'하지만 찾을 수 없습니다.

해당 디렉토리에 프로필이 있습니까? 아마 문제 일 것입니다. 그 디렉토리에 있어야합니다.

+0

우선 하늘빛 서버의 대상입니다. 둘, 왜 그 바보 같은 파일 이름을 찾으십니까? – Shimmy

+0

클라이언트에없는 좋은 점. 게시 파일을 체크 인하 고 빌드 프로세스의 일부입니까? –

+0

지정한 경로에서 예. – Shimmy

관련 문제