I have a successful build operating. Now I would like to have the build definition publish the site to my staging location. I tried to use a publishing profile that functions correctly from within Visual Studio but that doesn't seem to work with this unique combinations of Visual Studio and TFS. These are my MSBuild arguments:
/tv:14.0 /p:DeployOnBuild=true /p:PublishProfile="profileName.pubxml"
And this is the error returned from the build:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Web\Deploy\Microsoft.Web.Publishing.Deploy.FTP.targets (42): This specific WebPublishMethod(FTP) is not yet supported on msbuild command line. Please use Visual Studio to publish.
The error seems self-explanatory, but being new to build configurations I need to ask to make sure there aren't other reasons I would get this error.
Did I compose the MSBuild arguments correctly? Would a different set of arguments change the outcome?
I also would like to ask, if this specific IDE combo (i.e. VS2015/TFS2013) is not able to process my publish profile (as seems to be the case), is there an alternate method I can use to incorporate an automatic deploy after the build?
Could a PowerShell script be added to the post build
to perform the FTP upload?
Update: I changed the title and some text to be more reflective of the need.