为什么 Visual Studio 只允许一个项目中的每个文件有一个链接? [英] Why does Visual Studio only allow one link per file in a project?

查看:32
本文介绍了为什么 Visual Studio 只允许一个项目中的每个文件有一个链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在一个解决方案的多个不同项目中拥有一个文件,但是,Visual Studio 只允许每个解决方案有一个指向该文件的链接.有没有办法解决这个问题?

在一个 VS 项目中具有多个指向单个文件的软链接有什么问题?

What is the issue of having several soft links to a single file within a VS project?

更新:我添加了下面评论中描述的链接,似乎问题是基于每个项目的.项目中不能有多个指向同一文件的链接.当我尝试添加链接时,我收到以下错误 - 已经有一个指向 '' 的链接.一个项目不能有多个指向同一文件的链接."

Update: I have added the link as described from the comments below, it seems that the issue is on a per project basis. There can not be multiple links to the same file within the project. When I attempt to add the link I receive the following error - "There is already a link to ''. A project cannot have more than one link to the same file."

推荐答案

我使用的是 Visual Studio 2008 Professional,它允许一个项目中的相同文件软链接到其他每个项目,而与解决方案的数量无关您正在使用的文件.

I am using Visual Studio 2008 Professional, and it allows the same file from one project to be soft-linked to every other project, independently of the number of solution files you are using.

这篇关于为什么 Visual Studio 只允许一个项目中的每个文件有一个链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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