🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.ide.general
Article #51

Embedding XML as resource

#51
From: Tobias Grimm
Date: Fri, 02 Sep 2005 14:45
24 lines
1414 bytes
Hi!

I already posted this on delphi.general, but maybe my question better 
belongs to this group (even if this group looks pretty orphaned).

What I want to do is simply to embedd an XML as a resource in an 
assembly. (Need to add a NHibernate mapping file)

In VS it's as easy as:

<File
     RelPath = "ORMExample.hbm.xml"
     BuildAction = "EmbeddedResource"
/>

In Delphi it's as easy as:

{$R ORMExample.hbm.xml}

But what about C# builder? There must be an easy way too!

bye,

Tobias
Technical Details
Message-ID: <43186564$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 165859,f6c9c44f8a60af46,start
X-Google-Attributes: gid165859,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 02 Sep 2005 16:45:45 +0200
From: Tobias Grimm <tobias.grimm@cas-soft.de>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.csharpbuilder.ide.general
Subject: Embedding XML as resource
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 84.184.91.105
Message-ID: <43186564$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1125672292 84.184.91.105 (2 Sep 2005 07:44:52 -0700)
Lines: 24
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail