Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

On add existing item in VS2010, why can't I "add as link" a file from the same project?

I have two folders in my library project, folder A and folder B. Folder A will contain all the real files, but Folder B (and a bunch of other folders) need to contain links to the folder A files.

I tried going Add existing item (go to folder A)-> add (down arrow) -> add as link but the add existing item dialog window just closes and nothing happens. It seems I can add links to files outside the library project though. What's going on here?

-Isaac

like image 706
Isaac Bolinger Avatar asked Jul 26 '11 21:07

Isaac Bolinger


Video Answer


1 Answers

For some reason Visual Studio seems to silently ignore possible problems with adding file as a link. I just had the same problem and the solution was to:

  1. Check if project folder already contains a file with the name of file being linked, if so delete or rename this resource.

  2. Visual Studio 2010 seems to cache project directory contents, as (1) was not enough to successfully link the file. Restarting VS helps.

like image 127
too Avatar answered Oct 12 '22 12:10

too