简体   繁体   中英

How do I auto-deploy a web application using TFS 2010?

I have a web app in repository in TFS. I have set up a build process (CI) from it which outputs to the web root of a site hosted by my local IIS instance. However each time the build finishes I end up with a folder under the root folder of the IIS website I'd like the built codebase to go to. So the root folder for MyTestProject is located at:

`c:\websites\MyTestProject`

and the build outputs to a share of this same folder \\\\myPc\\MyTestProject

What I would like is for the latest build to always end up in the root folder of the site, but after a build I end up with this sort of thing:

`c:\websites\MyTestProject\MyTestProject_<date>.<version no>`
`c:\websites\MyTestProject\MyTestProject_<date>.<version no>/_PublishedWebsites/MyTestProject`
`c:\websites\MyTestProject\MyTestProject_<date>.<version no>/_PublishedWebsites/MyTestProject`

I can't seem to find a way of configuring this correctly in the build definition and struggling to find docs. Can someone point me in the right direction please?

I created a blog post on this a while ago. It was based on the blog posts of Vishal Joshi

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM