I have two projects in my VS solution, a project named "B" is a SharePoint 2010 project which has a mapped SharePoint "Layouts\js" folder and some other project "A".
In project "B" I put various files in the "Layouts\js" folder which are deployed when I hit deploy from VS2010. But if I add existing item from project "A" "someFile.js" with the option "Add As Link" to "Layouts\js" in project "B", the linked item is not deployed when I hit deploy from VS2010.
Why does this not work?
I want to be able to have only one copy of "someFile.js" across both projects, and I want "someFile.js" to be deployed in "Layouts\js" when I hit Deploy from VS2010.
How can I achieve this?