开发者

Adding Existing Files To Different Visual Studio 2010 Project

It is possible to add files to a visual studio project that is located in a different directory however keep the files in those directories and update those file when you update the file in the 开发者_开发问答project? When I add existing files to a project, all it does is copy them to the project and then update the copied files, not the original files. Is there any way to get it to work the other way?


You should add them as a link/shortcut

Right-click the project, select Add > Existing Item, and in the dialog, "Add" drop down, select "Add As Link".


  1. Open Visual Studio
  2. Right lick the solution Explorer and select Add | Existing item...
  3. Select the file and question, but in the "Add" drop down select Add as Link.

Alternatively I would suggest creating a class library project that you share in both solutions, this might benefit you in the future.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜