473,320 Members | 1,953 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,320 software developers and data experts.

Location of non-executable files on projects

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.
Jul 21 '05 #1
4 1484
use an install project you should.

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

-Yoda.

"dansan" <is*********@hotmail.com> wrote in message
news:7a**************************@posting.google.c om...
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.

Jul 21 '05 #2
"Dino Chiesa [MSFT]" <di****@microsoft.com> wrote in message news:<ew**************@TK2MSFTNGP09.phx.gbl>...
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.
Jul 21 '05 #3
Dansan,
Maybe this will help you?
http://www.gotdotnet.com/team/xmlent...ployntier.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" <is*********@hotmail.com> wrote in message
news:7a**************************@posting.google.c om...
"Dino Chiesa [MSFT]" <di****@microsoft.com> wrote in message

news:<ew**************@TK2MSFTNGP09.phx.gbl>...
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.

Jul 21 '05 #4
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.

"Dino Chiesa [Microsoft]" <OM**************@microsoft.com.OMIT> wrote in message news:<Ou**************@TK2MSFTNGP11.phx.gbl>...
Dansan,
Maybe this will help you?
http://www.gotdotnet.com/team/xmlent...ployntier.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

Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Scott | last post by:
I'm new to ASP, but I've been programming in VB for several years, and I'm having a few issues with this ASP enhancement I'm working on. I've found ASP to be a lot different than what I'm use to...
4
by: Marcello | last post by:
Hello I have a page of 2 frame: menu (menu.php) corpo (corpo.php) In menu.php i have: <script> function selAut(){ aut=autore.selectedIndex; aut=autore.options.value;
3
by: Gerry Abbott | last post by:
I deploy be-fe solutions to clients, and provide them with updates as a web link to the Fe file, wrapped in an installer. I can generally simulate their shares, if they are using a mapped drive. ...
11
by: William Buch | last post by:
I have a strange problem. The code isn't written by me, but uses the qsort function in stdlib. ALWAYS, the fourth time through, the memory location of variable list (i.e. mem location = 41813698)...
2
by: emallove | last post by:
I'm running into the below "No modules named _sha256" issue, with a python installed in a non-standard location. $ python Python 2.5.2 (r252:60911, May 20 2008, 09:46:50) on linux2 Type...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.