views:

60

answers:

1

Hi all,

I'm trying to add existing files as links to a Website project in Visual Studio 2010. This is so they will get added as a reference rather than as a new copy of the file. VS2010 help says there should be an "Add as Link" choice on the open file dialog in the Add dropdown box. However, I only see an "Add" choice in the dropdown, which adds a new copy of the file not a link.

I must be missing something obvious here, but not sure what. Your help would be appreciated.

Thanks, -NorthK

+1  A: 

Website projects do not support linked items. This cannot be done from VS UI and attempt to do that from macro or using sdk will result in 'Webs do not support linked files.' exception.

jarek
So, does that mean other types of projects do support linked files but website projects do not? If so, an interesting choice of functionality :) The VS 2010 help does not distinguish this difference. Thanks for your reply.
NorthK
Yes, most other projects support linked files but websites are 'special' case in many other aspects too.
jarek