🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.csharpbuilder.ide.general
5 messages
5 total messages Started by Tobias Grimm Fri, 02 Sep 2005 14:45
Embedding XML as resource
#51
Author: 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
Re: Embedding XML as resource
#52
Author: Marc Rohloff TeamB
Date: Fri, 02 Sep 2005 18:29
12 lines
1458 bytes
On Fri, 02 Sep 2005 16:45:45 +0200, Tobias Grimm wrote:

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

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

You can normally just add the file to the project manager.

-- 
Marc Rohloff [TeamB]
marc rohloff -at- myrealbox -dot- com
Re: Embedding XML as resource
#53
Author: Tobias Grimm
Date: Mon, 05 Sep 2005 08:25
17 lines
1619 bytes
Marc Rohloff [TeamB] wrote:

>>What I want to do is simply to embedd an XML as a resource in an 
>>assembly. (Need to add a NHibernate mapping file)
> 
>>But what about C# builder? There must be an easy way too!
> 
> You can normally just add the file to the project manager.

That's how it works with VS, but not with D2005. Of course I can add a 
xml file to my assembly project, but it doesn't get added as resource to 
the final dll. Have you tested this? If this works for you, please send 
me a small example.

Regards,

Tobias
Re: Embedding XML as resource
#54
Author: Tobias Grimm
Date: Tue, 06 Sep 2005 08:58
8 lines
1430 bytes
Tobias Grimm wrote:

> Of course I can add a  xml file to my assembly project, but it doesn't get
> added as resource to the final dll.

No idea? Anyone?

Tobias
Re: Embedding XML as resource
#55
Author: Tobias Grimm
Date: Thu, 08 Sep 2005 09:18
14 lines
1475 bytes
Tobias Grimm wrote:

>> Of course I can add a  xml file to my assembly project, but it doesn't 
>> get added as resource to the final dll.
> 
> No idea? Anyone?

Ok - seems I can compile my project only with NAnt or have to buy VS.

I've added a feature request Bug #15776.

bye,

Tobias
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads