I want to automate building and deploying process.
I managed to create a build definition on VSO and when I check in code build starts, tests run, and as an end product a folder is created which contains all my projects (asp.net web app and class libraries from solution) and bin folders from these projects.
But what I need is to get the same structure I get when I publish my web project from visual studio through publish feature (bin, Content, Scripts, Views, Web.config). And then copy all that to remote folder through ftp.
How can I do this?