all groups > dotnet xml > march 2004 >
You're in the

dotnet xml

group:

Deploying XML


Deploying XML JezB
3/29/2004 10:19:43 AM
dotnet xml: I've added an XML file to my windows client project, with data in it, but
when I BUILD the
project the xml file seems to be compiled into the executable or one of the
DLLs. I want the XML file itself placed into the assembly so that when
deployed it can be edited by the end-users - a kind of application
configuration file. The various "Build Action" property values of the xml
file seem to have no effect. Could anyone help me on this ?

Re: Deploying XML Christoph Schittko [MVP]
3/29/2004 10:37:58 PM
It depends on how you are building your installer. Are you using a Setup
and Deployment project? lf so, add the Content to the files that are
packaged into the installer and make sure the build action is set to
Content.

--
HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor

[quoted text, click to view]

Re: Deploying XML JezB
4/5/2004 9:07:41 AM
Aha I see ... I was hoping it would be possible in the normal build cycle
(before deployment project is run) without manually copying the xml to the
Release and Build folders.

"Christoph Schittko [MVP]" <christophdotnetINVALID@austin.rr.com> wrote in
message news:u1w9MDhFEHA.1064@TK2MSFTNGP12.phx.gbl...
[quoted text, click to view]

Re: Deploying XML Christoph Schittko [MVP]
4/6/2004 12:00:22 AM
When you say "I want the XML file itself placed into the assembly", do you
mean you want the XML to be built into the assembly as a string resource?

--
HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor

[quoted text, click to view]

Re: Deploying XML jlanza NO[at]SPAM -NOSPAM-vorsite.com
5/25/2004 11:32:00 AM
You might want to use a Pre-build (or Post-build) Event Command Line. Something like:

copy C:\ProjectDir\Config.xml C:\ProjectDir\bin\Debug\Config.xml

This is in the project properties under Build Events.

---
Posted using Wimdows.net NntpNews Component -

AddThis Social Bookmark Button