Resouces folder - Embedded vs Copy to Output Directory

Project uses Click-Once deployment.

In the project's Properties - Resources tab, I have a bunch of images which in the Properties window shows that their Persistence property = "Linked at compile time".  These images are used for toolbar button images.

However in the Solution Explorer in the Resources folder these image files are shown with:
Build Action: None
Copy to Output Directory: Do Not Copy

Shouldn't the Copy to Output Directory set to something other than "Do Not Copy" being that apparently they are "Linked at compile time"?
BC_EasyriderAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

TomDromiCommented:
It is OK.

two options:
1. if you connect these buttons at runtime with code you need them to be copy to the directory and access them as you get image from local file (bad option).
2. you define these images at design time and these images alredy copy to be resource of the toolbar.

if you connect to your images at run time from the resources you need to configur them to be "embedded at resource" and then you access them with code. in this option you also able to save them to local file after installation.

if you have problem with the code write it here and I'll assist.

Tom
0
BC_EasyriderAuthor Commented:
These images used with the toolbar buttons are added to the buttons at design time from which I would assume that the linking and properties for the images would be set automatically.  I don't need to code anything, I just want to ensure that there won't be any issues once I deploy my application.
0
TomDromiCommented:
this is Ok.

if you want to look on the inside you can see (with 'show all files' button on the top of the file explorer in VS) that any form class have also it's own resource file that embedded these images inside.

Tom.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
BC_EasyriderAuthor Commented:
A simple yes/no would have sufficed.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.