I've been looking for ages and I'm so exasperated because what I want to do is theoretically so simple!
I have a web project and when I tell my TFS to queue a new build I want my published files(or un-published files - I don't care) to end up in a static folder such as "C:\inetpub\myproj\webfiles".
I've checked out this post TFS 2010 Build Publish via file system which led me to this post Team Build: Publish locally using MSDeploy but I just don't get it and it doesn't seem to be working.
I have my build definition all set up and it builds successfully and will even build into a folder that I specifiy, but once it's built it ends up in a shed load of subfolders - one of which has a version number appended meaning IIS won't automatically pick up my latest version without some re-config. (I did remove the version bindings, but then it won't overwrite the last build with the latest build)
I'm currently messing around with these MSBuild Arguments to try and get it working:
/p:DeployOnBuild=true;
DeployTarget=PipelinePreDeployCopyAllFilesToOneFolder;
_PackageTempDir="\\HomeServer\inetpub\SiteTest";
AutoParameterizationWebConfigConnectionStrings=false
But there's a couple of points:
- The 'SiteTest' folder is never created and
- It's being accessed via share location when it's meant to be the HomeServer's local file system I want to publish too.
I just need to automatically get my web files inside of a folder I can predetermine for IIS, please help!