Location of non-executable files on projects

  • Thread starter Thread starter dansan
  • Start date Start date
D

dansan

I have several files in some of my projects that are not 'code' files,
but that are definately necesary to run the programs (such as .xsd
files, .txt files, and others). I have been trying to find out what
is the preferred way to store this files, and access them from code.

Do most of you just put them in the main project folder? Do you
create a special folder (something like an /etc folder) with these
such files? How do you reference them in your code?
(../../../myfolder/file.xsd?) How do you deal with the diference in
relative paths from a Debug to a Release? Is there anyway to thell
the 'builder' to include X folder in the final directory (wether it be
the Debug or the Release)?

Thanks for your pointers.

Daniel.
 
use an install project you should.

google for "Visual studio" and install,
and answers you will find.

-Yoda.
 
Dino Chiesa said:
use an install project you should.

google for "Visual studio" and install,
and answers you will find.

-Yoda.

And RTFMed I have...

But no luck yet.

Here is my bind. I have a WebService project. This project has a
reference to another project (classProject), which is uses. When the
WebService project is compiled, it sticks the dll for the
classProject. The classProject requires a few "content files" in
order to work (xsds, txts, and what have you). The WebService project
is completely unaware of those dependencies in the classProject, and
therefore does not 'fectch' those files.

I don't know how to go about doing this, but any help will be greately
appreciated.

Daniel.
 
Dansan,
Maybe this will help you?
http://www.gotdotnet.com/team/xmlentsvcs/deployntier.aspx

(ps: earlier I should have said, "deployment project", not "install
project")

--
----
Dino Chiesa
Microsoft Developer Division
d i n o c h @ m i c r o s o f t . c o m



dansan said:
"Dino Chiesa [MSFT]" <[email protected]> wrote in message
use an install project you should.

google for "Visual studio" and install,
and answers you will find.

-Yoda.

And RTFMed I have...

But no luck yet.

Here is my bind. I have a WebService project. This project has a
reference to another project (classProject), which is uses. When the
WebService project is compiled, it sticks the dll for the
classProject. The classProject requires a few "content files" in
order to work (xsds, txts, and what have you). The WebService project
is completely unaware of those dependencies in the classProject, and
therefore does not 'fectch' those files.

I don't know how to go about doing this, but any help will be greately
appreciated.

Daniel.
 
I don't need to manually deploy this project. This project is
automagically deployed to our web server. When I create the web
service, it put it straight into the web server (I guess it is using
front page extensions). That server is NOT my machine. The 'bin'
folder for the project does not reside on my box.

I would create the "deployment project" if I had to deploy it
somewhere else, but I don't have to.

I have read the documentation about deploying (which is not very
friendly either. You seem to be able to add 'content files' but it is
not very clear how it would handle them if they are in any type of
folder tree, which should be kept in order for your application to
work properly).

Can't I specify that the 'build' command should make sure that folder
X is inside the 'bin' folder? This seems ridiculously hard for such a
simple thing.

I will very much appreciate any input on this matter.

Daniel.
 
Back
Top