Using TFSBuild to publish ClickOnce files that include prerequisites
Posted
by icancsharp
on Stack Overflow
See other posts from Stack Overflow
or by icancsharp
Published on 2010-05-14T14:30:01Z
Indexed on
2010/05/14
14:34 UTC
Read the original article
Hit count: 338
I have declared an MSBuild tag in my TFSBuild project in order to publish ClickOnce files for my project.
WSE 3.0 and .Net 3.0 are both pre-requisites for the application, so in Visual Studio I have ticked those as pre-requisites. When I build from Visual Studio, it creates a setup.exe file that I can publish to my web site. When you browse to this setup.exe file it installs WSE3.0 and .Net 3.0 and then continues to install my application, which works well.
If I get TFS to create the click once files using the MSBuild tag in the TFSBuild file, it creates the setup.exe file, which I can publish to my website in the same way (along with all the other ClickOnce files). When I browse to setup.exe now, however, the prerequisites don't get installed and therefore my program does not run.
Does anyone know how to get TFS to build a correct setup.exe file that properly bootstraps my prerequisites?
© Stack Overflow or respective owner