Solved

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

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

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…
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

821 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