473,241 Members | 2,202 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,241 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

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net
http://www.setbb.com/putainformatica...opic.php?p=843
www.trabajobasura.com/solusoft

Sep 6 '08 #1
3 5737
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.

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

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

(use the MSBuild from the appropriate framework directory - i.e.
%windir%\Microsoft.NET\Framework\v3.5
or
%windir%\Microsoft.NET\Framework\v2.0.50727

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

Marc
Sep 8 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Danny Tuppeny | last post by:
I've been playing around with ClickOnce today, and it's all good stuff. Except, that if I change my application to NOT be full trust (which seems to make very little difference to the user prompt,...
0
by: Magnus Bergh | last post by:
I have some questions about ClickOnce: 1) If I want to run a Clickonce published application from another program (not .NET) how should I run it, calling the application manifest file? 2) Is...
1
by: moondaddy | last post by:
I need to have multiple deployment profiles for a .net 2.0 winforms project. This is my requirement: 1) Re-use same project for multiple ClickOnce deployment profiles. 2) Each profile will...
2
by: Josef Brunner | last post by:
Hi, my application uses some configuration files. Since I could not find a way to have VS 2005 include these files into the generated Setup program once I publish the ClickOnce application (not...
3
by: KenL | last post by:
I have a WinForm(VB 2.0) application that I am publishing as a ClickOnce installation. We have a need to publish the same application code for several configurations. (Staging, TestSystem,...
3
by: Ronald S. Cook | last post by:
We have a VS2005 Team setup and are developing a Windows app (smart client). We are in the cattle feeding business and have 10 distinct feedyards across the U.S. When we wish to deploy an update...
3
by: Ronald S. Cook | last post by:
I have a Win app that references a class library project. Within the latter, there is a remoting.config file. When I publish my app using ClickOnce, it errors telling me it can't find the...
3
by: Meelis Lilbok | last post by:
Hi I have made a project with vb.net and publish it(clickonce) On firs laucnh app creates a xml file in startuppath\database\file.xml Now when i update my app and publish it, after...
3
by: Peter Wyss | last post by:
Hello! I've a few questions about ClickOnce in VisualStudio 2005. The installation of my application works fine, I published the files on a webserver and installed the app on a winxp client,...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.