Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 823555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T02:57:56+00:00 2026-05-15T02:57:56+00:00

I have a TFS build set up to deploy an ASP.net project to a

  • 0

I have a TFS build set up to deploy an ASP.net project to a test server.

The build works great, and deploys to the test server fine, but instead of putting it into the \Website directory that my IIS webserver is configured for, it puts the build into \Website_20100511.6

Why is the date suffixed to the directory name? Is there a way to turn that off so I can publish directly to the \Website?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T02:57:56+00:00Added an answer on May 15, 2026 at 2:57 am

    You don’t want to have the build agent build to the actual location your site is running from. You need to add script to the end of the build process (tfsbuild.proj file) to take the code from the drop location and move it to the web server.

    Something like this:

    <Target Name="AfterDropBuild">
    
        <Message Text="PortalFilesToPublish location is $(DropLocation)\$(BuildNumber)" Importance="Low" />
    
        <CreateItem Include="$(DropLocation)\$(BuildNumber)\Default\_PublishedWebsites\MyWebPortal\**\*.*" Exclude="*.pdb" >
            <Output ItemName="PortalFiles" TaskParameter="Include" />
        </CreateItem>
    
        <Copy
          SourceFiles="@(PortalFiles)"
          DestinationFiles="@(PortalFiles ->'\\testserver.test.lab\Test Lab\MyWebPortal\%(RecursiveDir)%(Filename)%(Extension)')"
          ContinueOnError="true" />
    </Target>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have our build and deployment scripts set up in TFS 2010. But we
We have an ASP.Net MVC solution built in VS2008 and TFS2008. We use TFS
In our project, we'd like to have our TFS build put each project into
We have a TFS build definition set up where we pass the following extra
We have TFS 2008 our build set up to checkout all AssemblyInfo.cs files in
I have set up TFS Build Service on one machine in the network. Now
I have a problem that is described here: TFS: cannot set up new build
I've got a TFS build set up to build and deploy a web application.
I have several build tasks set up in TFS 2008. Intermittently (and constantly at
I have created a TFS build definition to create our software releases. Now I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.