471,318 Members | 1,979 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,318 software developers and data experts.

Add folder to a published project

acb
Hi,

I have a VS 2005 C# project to which I have added a folder. Into this
folder are various resources that are used within the program.

I have the line ItemsPath = Application.StartupPath + "\\Resources\\";
in my code and whilst in the IDE everything works fine. When I come to
install the published version of the program, an exception is raised
that indicates that the file within the folder could not be found.

Can someone please tell me what am I doing wrong?

Thank You,
Al

Jan 29 '06 #1
1 1251
acb
Update: I figured it out. The folders were part of the project; I had
dragged the files via Explorer and these were therefore unknown to the
IDE.

Thanks

Jan 29 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by =?Utf-8?B?UGFvbG8gTmljY29sw7IgR2l1YmVsbGkgW0F4ZXR0 | last post: by

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.