views:

66

answers:

2

Hi all,

i have a solution sln, with several projects (vbproj, csproj), and I have Windows Application, and I use ClickOnce for publish it.

Now, I need automatize the Publish option using msbuild or another good solution (cmd, vbs, bat scripts).

Any help about it ?

thanks in advanced, greetings

A: 

Well Click-Once uses MSBuild to publish itself. Therefore I would recomment to use MSBuild for you're build-automation. See the reference on MSDN.

The first step is easy. You just run MSBUild with 'Publish'-target from the console. The setting made in Visual Studio are applied.

However there are some tricky bits. For example when you run it from the command line, the version-number isn't increased. In my project I've solved this by passing the version-number from the build-script.

Another tricky-part is when you want to run the build script on your build-server without Visual-Studio installed. There you might have to copy some to make it work.

Gamlor
A: 

Please, any sample code of scripts ?? Thanks.

alhambraeidos