“添加为链接”发生了什么事,选项? [英] What happened to the "add as link" option?

查看:102
本文介绍了“添加为链接”发生了什么事,选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么是添加现有文件作为链接功能仅可用于管理项目?我不能在vcproj中使用相同的功能。是因为托管项目是为msbuild构建的,而vcproj文件不是?

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?

推荐答案

em>功能对于VC ++项目(无论是否受管)都不是必需的,因为VC ++项目不要求所有源文件严格驻留在包含项目的文件夹中。 C#项目,另一方面,有这个要求。因此,您可以说VC ++ 始终会以链接形式添加文件,并从不复制这些文件。

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.

这种灵活性是必须创建不对应于磁盘上的真实文件夹的虚拟项目文件夹,并自己管理它们。这个遗产来自VC6,相信我有很多C#程序员羡慕这种灵活性。要显示虚拟项目文件夹和真实项目文件夹之间的区别,请切换项目 - >显示所有文件。

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".

这篇关于“添加为链接”发生了什么事,选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆