Tim Hibbard

CEO for EnGraph software
posts - 626, comments - 1548, trackbacks - 459

My Links

News



Add to Google

Twitter












Tag Cloud

Article Categories

Archives

Post Categories

Image Galleries

EnGraph Blogs

Links

Other

Roll

TFS - Publish Web Service with TeamBuild

TeamBuild is such a powerful tool.  We use it to run our unit tests and publish our apps using ClickOnce.  Recently we started using it to publish a web service.  This code depends on MSBuildTasks from Tigris.

<PropertyGroup>
  <DeploymentFolder>**SHARED FOLDER ON WEB SERVER**</DeploymentFolder>
  <DeployServerName>**WEB SERVER NAME**</DeployServerName>
  <ApplicationPoolName>ReportingWS</ApplicationPoolName>
  <VirtualDirectory>ReportingWS</VirtualDirectory>
  <WebBinariesLocation>$(BuildDirectoryPath)\Binaries\Release\_PublishedWebSites\ReportingWS</WebBinariesLocation>
</PropertyGroup>
 
<Target Name="AfterCompile">
  <RemoveDir Directories="$(DeploymentFolder)" ContinueOnError="true" />
 
  <Exec Command="xcopy /y /e /i $(WebBinariesLocation) $(DeploymentFolder)"/>
 
  <WebDirectoryDelete VirtualDirectoryName="$(VirtualDirectory)"
                      ContinueOnError="true"
                      ServerName="$(DeployServerName)"/>
  <WebDirectoryCreate VirtualDirectoryName="$(VirtualDirectory)"
                      VirtualDirectoryPhysicalPath="$(DeploymentFolder)"
                      ServerName="$(DeployServerName)"/>
</Target>

Essentially, we just copy the executable files from the Web Service to a shared folder on our web server and map a virtual directory to that shared folder.

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Print | posted on Wednesday, November 19, 2008 5:39 PM | Filed Under [ .NET Goldstar TFS ]

Feedback

Gravatar

# re: TFS - Publish Web Service with TeamBuild

Good work. Keep the spirit high and you will continue doing this.
4/29/2011 7:50 AM | Pneumonia symptoms
Gravatar

# re: TFS - Publish Web Service with TeamBuild

This is so nice to read all the information. Must have seen all the things again.
5/21/2011 5:53 AM | Govt jobs in India
Gravatar

# re: TFS - Publish Web Service with TeamBuild

This is worth reading. Good job indeed.
5/22/2011 6:48 AM | Government jobs
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

Powered by: