相关疑难解决方法(0)

Visual Studio项目中文件夹的"添加为链接"

在Visual Studio中,我们可以"添加为链接"以添加指向解决方案中另一个项目中的文件的链接.

有没有办法对整个文件夹执行此操作,以便项目A中的整个文件夹在项目B中可见,而无需手动链接到该文件夹​​中的新项目?

projects-and-solutions visual-studio-2010 visual-studio

123
推荐指数
5
解决办法
5万
查看次数

Visual Studio链接的文件不存在

在Visual Studio中,您可以执行Add- > Existing Item然后Add as LinkAdd下拉按钮.

这很棒.这是让你从另一个项目中添加一个文件,编辑文件也会在原始项目中编辑它.

我想使用此功能在一个解决方案中的所有项目中都有一个配置文件(名为Shared.config).并且该文件始终相同.

解决方案
|
| - 项目1
|- Shared.config [physical]
|- project 2
| - Shared.config [linked]

After publishing, the file indeed ends up in all published projects, so no problem there.

But BEFORE publishing (during development on build) the linked file doesn't really exist. Trying to see the file in the Windows Explorer proves that the file is not in the project directory. Visual …

c# visual-studio-2010 build-events

18
推荐指数
2
解决办法
1万
查看次数