473,396 Members | 1,929 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,396 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 5779
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.