Solution items in Visual Studio

I recently noticed and decided to use the ability to add solution items to my VS 2008 solution to house a generic error page and web.config that could apply to my multiple projects in the solution.

This is the documentation I fond on solution items: http://msdn.microsoft.com/en-us/library/0kz72ax7(v=VS.90).aspx

What I can’t seem to figure out is how to get the items to be included upon publish. I guess since they are at the root level and the projects are sub-directories, it’s not possible to automate. Looks like I must manually move them.

Anyone used these and can confirm?

What you want to do is add a linked item to the project, and set that to copy always and it should land where you want it.

Goodness, add as link! I didn’t know about that option for adding an existing item. Worked great, thanks! :slight_smile: