473,387 Members | 1,486 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,387 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 1486
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: 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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.