What happened to the “add as link” option?

江枫思渺然 提交于 2019-12-07 11:45:21

问题


Why is the add an existing file as a link feature only available for managed projects? I can't use the same feature in a vcproj. Is it because managed projects are built for msbuild, and vcproj files are not?


回答1:


The Add As Link feature is not necessary for VC++ projects (whether managed or not) because VC++ projects do not require all source files to reside strictly within the folder that contains the project. C# projects, on the other hand, do have this requirement. So you could say that VC++ always adds files as links and never copies them.

The price you pay for this flexibility is having to create virtual project folders that don't correspond to real folders on disk and manage them yourself. This heritage comes from VC6 and believe me plenty of C# programmers envy that flexibility. To show you the difference between the virtual project folders and the real project folders, toggle "Project -> Show All Files".



来源:https://stackoverflow.com/questions/5044885/what-happened-to-the-add-as-link-option

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!