2010-12-17 2 views
0

웹 사이트 및 프로젝트의 자동 배포를 위해 Team Foundation 2010 Team Build를 사용하고 있습니다. 하지만 웹 사이트에서 올바르게 작동하도록 할 수는 없습니다 ...Team Build 2010은 구성이 Debug 또는 Release가 아닌 경우 웹 사이트를 게시하지 않습니다!

디버그/릴리스 구성을 사용하면 컴파일 후 웹 사이트가 게시됩니다. 다 괜찮아.

하지만 내 구성에 맞게 구성 관리자에서 다른 구성을 만들었으므로이 구성으로 구축 할 웹 사이트를 확인해야합니다.

Could not find a part of the path '\server-name\Deploy\build-name\build-number_PublishedWebsites\website-name\'.

누구나 무슨 일이 일어나고 있는지 단서를 가지고 : 나는 서버에 새 빌드를 대기 할 때, 모든 것을 컴파일하지만 나에게 오류를 제공

? 왜 출판하지 않습니까?

답변

1

글쎄, 나는 그것을 "맞았다". 나는 누군가가 알고 싶어하는 경우에 대비하여 여기에 올리고있다. 그러나 누가 더 좋은 방법을 알고 있다면 알려주세요

.sln 파일을 수동으로 편집하고 다른 구성에 AspNetCompiler 속성을 추가하는 방법이 있습니다. ProjectSection (WebsiteProperties)에서

,

Release.AspNetCompiler.VirtualPath = "/site" 
    Release.AspNetCompiler.PhysicalPath = "site\" 
    Release.AspNetCompiler.TargetPath = "PrecompiledWeb\site\" 
    Release.AspNetCompiler.Updateable = "false" 
    Release.AspNetCompiler.ForceOverwrite = "true" 
    Release.AspNetCompiler.FixedNames = "true" 
    Release.AspNetCompiler.Debug = "False" 

나는 아래에이 물건을 추가 :

MyConfiguration.AspNetCompiler.VirtualPath = "/site" 
    MyConfiguration.AspNetCompiler.PhysicalPath = "site\" 
    MyConfiguration.AspNetCompiler.TargetPath = "PrecompiledWeb\site\" 
    MyConfiguration.AspNetCompiler.Updateable = "false" 
    MyConfiguration.AspNetCompiler.ForceOverwrite = "true" 
    MyConfiguration.AspNetCompiler.FixedNames = "true" 
    MyConfiguration.AspNetCompiler.Debug = "False"  

그리고 그것이 마치 마법처럼 일했다. 그러나 그렇게 할 경우 빌드가 실패하기 때문에 앞이나 뒤에 빈 줄을 남기지 마십시오.