I am trying to deploy a console application to a folder on a DMZ server using autodeploy with MSBuild and Team Foundation Server.
I already deploy several sites on the same server and it works great. I tried several ways, but the files were not deployed.
Firstly, I tried to deploy the console application in the same way as for my website, that is:
<MSBuild Projects="$(SolutionRoot)\MySolution.sln" Properties="AllowUntrustedCertificate=True;AuthType=Basic; Configuration=DEBUG;CreatePackageOnPublish=True; DeployIisAppPath=Default Website/dummy.dev.myapp; DeployOnBuild=True;DeployTarget=MsDeployPublish; MSDeployPublishMethod=WMSvc; MsDeployServiceUrl=https://xxx.xxx.xxx.xxx:8172/MsDeploy.axd; UserName=userid;Password=password;UseMsdeployExe=True" />
Without success.
EDIT: The error message is not returned. Everything seems to be going well.
Then I also tried to deploy the console application as follows:
<Exec Command=""C:\Program Files\IIS\Microsoft Web Deploy V2\MSDeploy.exe" -verb:sync -source:contentpath="$(OutDir)\MyApp.Precompiled" -dest:contentpath="D:\dev.myapp",computername=xxx.xxx.xxx.xxx,username=userid,password=password" ContinueOnError="false" />
I also tried with the name computername as https://xxx.xxx.xxx.xxx:8172/MsDeploy.axd
.
EDIT: I got the following. EXEC: FileOrFolderNotFound EXEC: An object of type 'contentPath' and path 'E: \ Builds \ 1 ... \ dev.myapp' cannot be created. EXEC: path "\? \ E: \ Builds \ 1 ... \ dev.myapp" is not valid. EXEC: 1. E: \ Builds \ 1 ... \ BuildType \ Targets \ Deploy.targets (142): command "C: \ Program Files \ IIS \ Microsoft Web Deploy V2 \ MSDeploy.exe" -verb: sync -source : contentpath = "E: \ Builds \ 1 ... \ dev.myapp" -dest: contentpath = "D: \ dev.myapp", computername = https://xxx.xxx.xxx.xxx: 8172 / MsDeploy. axd, username = userid, password = password "came out with the code -1. I understand that I have not read the entire error, do I really need a UNC path?
Does anyone know how to do this?
source share