pu132

I want to embed a resource in my project that will change as development goes along. However, I don't want to have to delete and add the resource again every time I want to test out a new feature. Is it possible to link to a resource without copying it to the project folder so that every time I build it gets the resource file from its original location

Re: Visual C# IDE Link to a resource, not copy it.

Sabrecat

This eluded me for a while too as it is not obvous. When you are adding the resource to your project you can click on the little down arrow on the Add button in the "Add Existing Item" Dialog box and select the Add as Link option and that will create a link to the file in question and not copy the file to your current project.



Re: Visual C# IDE Link to a resource, not copy it.

pu132

Okay, thanks. I did have to add an extra step to that, because the add as link option only shows up when I add a file to the project. I had to add the link to the project and then drag the link over to the resources area in the project properties window. Then I could remove the link from the project and the resource stays as a link. Seems like it would be useful to add the Add as Link option to the add existing file for the resources window.