We have a WPF application and we use TFS 2010 for continuous integration. A new assembly is launched for each registration in the source control. All I want is to publish / deploy this project in a local folder after each build. How can i do this?
In fact, we have another WCF service project, and I managed to set up continuous integration for this. It is built, unit tests are run and then deployed to successfully debug the server. Build definitions I installed:
Clean Workspace = None Copy Outputs to Drop folder = False MSBuildArguments = /p:DeployOnBuild=True /p:DeployTarget=MsDeployPublish /p:MSDeployServiceURL=http://<serverIP> /p:DeployIISAppPath="/DebugSite" /p:CreatePackageOnPublish=True /p:MsDeployPublishMethod=InProc (changed from RemoteAgent, didnt bother to try and remove other parameters) /p:AllowUntrustedCertificate=True /p:UserName=... /p:Password=...
But when I use the same configuration for this WPF project, it compiles, but nothing is placed in the destination folder. It is just empty. (By the way, I know that the destination folder is correctly defined in IIS, because if I publish the same project from VS2010, it will be successfully deployed and can be viewed using IE.)
I struggled with this for quite some time. I found many "close" questions and solutions, but none of them were useful to me. For instance:
Being inspired What is the easiest way to deploy a WPF application? , I added the โCopyDirectoryโ activity to the build workflow, which copied the contents of the build output directory to my destination. This filled the output folder with a large number of files, which, apparently, were compilation products with .exe, .xbap and all DLL files, but they could not be used as a WPF application. An attempt to use the drag location turned out to be a similar result. When I try to view the application, I get the following error:
An exception occurred while downloading the application. Following failure messages were detected: - Downloading http:
The following unanswered question was also found: http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/e9abf652-223f-4683-9c07-f3064cd4296f This is almost the same problem with me, except that I am using IIS 7 and Windows Server 2008.
So, how can I get TFS to deploy a WPF application after build?
source share