By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,276 Members | 1,452 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,276 IT Pros & Developers. It's quick & easy.

namespaces, folders, and embedded files

P: n/a
Hello All,
I'm getting into nHibernate for a project at work. I've organized my xml
files into a folder within the project and have chosen to embed them into
the assembly. However, the nHIbernate framework cannot find the xml files
because they are in the "folder". Could someone explain how namespaces and
folders work with the compiler? Or could offer any tips?

Many thanks to all,
Patrick
Feb 17 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Ok, I found a method called AddResource("resource name").
I need to re-phrase my question. How do you reference a resource that is in
a "folder"?

Many thanks to all,
Patrick

"Patrick" <cparker@noharvesting> wrote in message
news:Oo**************@TK2MSFTNGP14.phx.gbl...
Hello All,
I'm getting into nHibernate for a project at work. I've organized my xml
files into a folder within the project and have chosen to embed them into
the assembly. However, the nHIbernate framework cannot find the xml files
because they are in the "folder". Could someone explain how namespaces and
folders work with the compiler? Or could offer any tips?

Many thanks to all,
Patrick

Feb 17 '06 #2

P: n/a
lets say your projects' namespace is ScaryApp and within the project you have
a folder called ScaryStuff and there you have an icon Scary.ico. So in order
to access that resouce you call it like that:
"ScaryApp.ScaryStuff.Scary.ico". As you can see, you CAN have stuff placed in
folders and access them as embedded resources and all the slashes are
replaced by full stops.

"Patrick" wrote:
Ok, I found a method called AddResource("resource name").
I need to re-phrase my question. How do you reference a resource that is in
a "folder"?

Many thanks to all,
Patrick

"Patrick" <cparker@noharvesting> wrote in message
news:Oo**************@TK2MSFTNGP14.phx.gbl...
Hello All,
I'm getting into nHibernate for a project at work. I've organized my xml
files into a folder within the project and have chosen to embed them into
the assembly. However, the nHIbernate framework cannot find the xml files
because they are in the "folder". Could someone explain how namespaces and
folders work with the compiler? Or could offer any tips?

Many thanks to all,
Patrick


Apr 19 '06 #3

P: n/a
and if you don't know exactly how to access the resources, then this method
gives you all the resources with their addresses:
Assembly.GetExecutingAssembly().GetManifestResourc eNames()

hope this helps

"Patrick" wrote:
Ok, I found a method called AddResource("resource name").
I need to re-phrase my question. How do you reference a resource that is in
a "folder"?

Many thanks to all,
Patrick

"Patrick" <cparker@noharvesting> wrote in message
news:Oo**************@TK2MSFTNGP14.phx.gbl...
Hello All,
I'm getting into nHibernate for a project at work. I've organized my xml
files into a folder within the project and have chosen to embed them into
the assembly. However, the nHIbernate framework cannot find the xml files
because they are in the "folder". Could someone explain how namespaces and
folders work with the compiler? Or could offer any tips?

Many thanks to all,
Patrick


Apr 19 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.