473,385 Members | 2,005 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,385 software developers and data experts.

namespaces, folders, and embedded files

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
3 1337
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Random | last post by:
I'm confused about the proper use and usefulness of namespaces. I beleive I understand the purpose is so the developer can put classes within namespaces to essentially organize your code. And I...
11
by: Random | last post by:
I'm confused about the proper use and usefulness of namespaces. I beleive I understand the purpose is so the developer can put classes within namespaces to essentially organize your code. And I...
22
by: Random | last post by:
I'm confused about the proper use and usefulness of namespaces. I beleive I understand the purpose is so the developer can put classes within namespaces to essentially organize your code. And I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.