471,344 Members | 1,551 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,344 software developers and data experts.

ClickONce. Change app.config after Publish

Hi all,

I am working on a windows forms app. I do my development in a development
environment, and I have certain settings in my app.config like connection to
WCF services that point to my development WCF Services.

When I deploy my Application with ClickOnce, those settings are going to
have to be updated to their production values.

What is the recommended method for managing this? I can't imagine modifying
the app.config on production and then having to start over again with the
development values the next time i publish.

In production enviroment I haven't Visual Studio for do again new Publish.

Using ClickOnce VS 2005, I have Custom Prerequisites too

thanks in advance


Sep 6 '08 #1
3 5366
ClickOnce isn't going to like you messing with any of the files in the
deployment. You could manage these settings outside of ClickOnce, but
that gets messy. I simply use a script that configures app.config for
the specific environment and uses MSBuild (Target = Publish, or
something similar) to build it. You don't need Visual Studio to build
the ClickOnce deployment.

Sep 7 '08 #2
Mister, how build the ClickOnce deployment without Visual Studio ?? I have
custom prerequisites to.

Sep 8 '08 #3
msbuild your.csproj /target:Publish /property:Configuration=Release

(use the MSBuild from the appropriate framework directory - i.e.

Re the pre-reqs - as long as the pre-reqs are known the the csproj it
should work... (I haven't tried).

Sep 8 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Danny Tuppeny | last post: by
reply views Thread by Magnus Bergh | last post: by
1 post views Thread by moondaddy | last post: by
2 posts views Thread by Josef Brunner | last post: by
3 posts views Thread by KenL | last post: by
3 posts views Thread by Ronald S. Cook | last post: by
3 posts views Thread by Ronald S. Cook | last post: by
3 posts views Thread by Meelis Lilbok | last post: by
3 posts views Thread by Peter Wyss | last post: by
reply views Thread by Ronak mishra | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.