How to use MSBuild to create ClickOnce files that match those created by Visual Studio

Posted by EasyTimer on Stack Overflow See other posts from Stack Overflow or by EasyTimer
Published on 2010-05-14T10:40:42Z Indexed on 2010/05/14 10:44 UTC
Read the original article Hit count: 441

Filed under:
|
|

I am trying to use MSBuild in a TFS Build file to create click once files for my application. According to MSDN (http://msdn.microsoft.com/en-us/library/ms165431.aspx) it seems that the project file's click once settings should be used unless you override them with property arguments on the command line. However, even though I have specified (in VS) that some prerequisites should be bootstrapped in with the setup, they don't seem to get installed if I use the MSBuild command line to create the package, even though they do seem to get installed if I use Visual Studio to create the ClickOnce package.

Please could someone advise me how to get my prerequisites to get installed via ClickOnce when the clickonce package is built using the MSBuild command line?

For information, in Visual Studio, project properties, "Publish" tab, "Prerequisite" button, I have ticked "Create setup program to install prerequisite components", I have ticked my pre-requisites and I have specified "Download prerequisites from the component vendor's web site"

© Stack Overflow or respective owner

Related posts about c#

Related posts about clickonce