Solved

Visual Studio: Publishing programs so that sub folders in my project work

Posted on 2006-11-20
4
845 Views
Last Modified: 2006-12-15
Hi, i've got a program coming along nicely which uses a few items stored in sub folders of the main program directory (xml settings, images etc).  I tried to publish the project in visual studio via the build menu, but once compiled, the folders seem to go elsewhere, therefore my references are out in the project.

How do i ensure that the folders stay consistent??

Any help would be great

Thanks
0
Comment
Question by:Artform04
  • 2
4 Comments
 
LVL 9

Expert Comment

by:DjDezmond
ID: 17978437
How are you referencing the folders in your project?

Do you use 'Application.StartupPath'?
0
 
LVL 1

Author Comment

by:Artform04
ID: 17978455
ye, application.startupPath. the subfolders are all in the main oot directory, but obviously the startup path is in the bin folder. So i use "../../" to go up to the root directory of the app, not the Bin.  

I looked into where the files go when it is published and it sends the bin and my subfolders into different folders about one or two levels higher???
0
 
LVL 5

Accepted Solution

by:
DEEPESH earned 125 total points
ID: 17978479
Try creating directories and files under you bin folder and then run your application.
0
 
LVL 1

Author Comment

by:Artform04
ID: 18029560
hi, do u mean in the release / debug folders or just the BIN folder??

Phil
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now