I need some tips on setting up TFS Build to work with MSBuild and publishing a profile through the file system to deploy my web application ...
I use TFS 2013 and Visual Studio 2013. I have a web application project with several class library projects. I have a web.config conversion for our Dev and QA environments. I have Published Profiles that define file system deployment. These publications are published in Visual Studio. The same publishing profiles work if I open a command prompt and start MSBuild with the following commands:
/ p: DeployOnBuild = true / p: PublishProfile = "Dev Intranet"
I created a TFS build definition, and they are successful in all build reports. I configured MSBuild arguments with the same parameters as MSBuild from the command line.
I expect the publication profile to copy the published website to a folder on my network, but this does not happen.
For testing purposes, I set the Drop TFS Build folder to the same network location. All of these files are displayed, including the directory "_PublishedWebsite". But I can not use this directory because web.config is not converted.
I have found several websites that suggest this is possible, but I have no success so far. If anyone got this to work, I would appreciate help.
MSDN: create assembly definition
AwaitWisdom: Automated Deployment on the Web with Team TFS Team