Clickonce Publish: How to do it on comamnd line - MSBuild?

G

gkustas

After several hours reading up on Clickonce and hacking away, I was
able to get our (complex) application running from a remote network
shared folder. VERY cool. I used Visual Studio 2005 to reate the
application and deployment manifests, etc., using it's "Publish"
feature from within the IDE.

We already use MSBuild and devenv on the command line to automate our
project builds, and I need to do the same for building the clickonce
publishing.

I understand that I can use mage.exe, but seeing how much functionality
is already in the existing microsoft MSBuild tasks for this, I'm
betting that Visual studio is already using MSBuild every time the
publish function is run from the IDE.

Can anyone tell me if this is something wothwhile persuing, and if so,
is there any doc out there that could help with this?
 
G

gkustas

In case anyone cares, it's pretty simple to build the publication from
the command line:

msbuild /t:publish yourproject.csproj

However, to set up you csproj file with the correct files, etc., the
easiest thing to do is to publish it once from the IDE. This will save
all of your publish properties in the csproj so that you can do a
simple command line build afterwards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top