Solved

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

Posted on 2006-11-20
4
849 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

864 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

18 Experts available now in Live!

Get 1:1 Help Now