Link to home
Start Free TrialLog in
Avatar of Artform04
Artform04

asked on

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

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
Avatar of DjDezmond
DjDezmond
Flag of United Kingdom of Great Britain and Northern Ireland image

How are you referencing the folders in your project?

Do you use 'Application.StartupPath'?
Avatar of Artform04
Artform04

ASKER

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???
ASKER CERTIFIED SOLUTION
Avatar of DEEPESH
DEEPESH

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
hi, do u mean in the release / debug folders or just the BIN folder??

Phil