Geeks With Blogs

News



Add to Google

Tim Hibbard CEO for EnGraph software

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.

Posted on Wednesday, November 19, 2008 5:39 PM .NET , Goldstar , TFS | Back to top


Comments on this post: TFS - Publish Web Service with TeamBuild

# re: TFS - Publish Web Service with TeamBuild
Requesting Gravatar...
Good work. Keep the spirit high and you will continue doing this.
Left by Pneumonia symptoms on Apr 29, 2011 7:50 AM

# re: TFS - Publish Web Service with TeamBuild
Requesting Gravatar...
This is so nice to read all the information. Must have seen all the things again.
Left by Govt jobs in India on May 21, 2011 5:53 AM

# re: TFS - Publish Web Service with TeamBuild
Requesting Gravatar...
This is worth reading. Good job indeed.
Left by Government jobs on May 22, 2011 6:48 AM

Your comment:
 (will show your gravatar)


Copyright © Tim Hibbard | Powered by: GeeksWithBlogs.net