Visual Studios - 在不同项目之间共享文件夹

时间:2022-08-27 20:26:55

I've got two projects, one CF2.0 project and one NET2.0 project. These projects are related to a CF2.0 application project and a NET2.0 WebService project respectively.

我有两个项目,一个CF2.0项目和一个NET2.0项目。这些项目分别与CF2.0应用程序项目和NET2.0 WebService项目相关。

The projects are my Data Access Layers and they are both identical, apart from the ProtoBuf Dll version.

这些项目是我的数据访问层,它们都是相同的,除了ProtoBuf Dll版本。

Is there any way that my NET2.0 DAL project can just reference the folders in my CF2.0 project without having to copy over all 500 or so source files? I'm sure I've seen this done before where a shortcut is just added to a file and then the project compiles the referenced file.

有没有办法让我的NET2.0 DAL项目可以引用我的CF2.0项目中的文件夹,而无需复制所有500个左右的源文件?我确定在将快捷方式添加到文件然后项目编译引用的文件之前,我已经看到了这一点。

I am using Visual Studios 2005.

我正在使用Visual Studios 2005。

1 个解决方案

#1


Yes it is indeed possible to add a link to a file instead of copying it, but this is only possible with files, not with folders.

是的,确实可以添加链接到文件而不是复制它,但这只能用于文件,而不能用于文件夹。

Cant' you just reference the compiled DAL?

不能'你只是参考编译的DAL?

#1


Yes it is indeed possible to add a link to a file instead of copying it, but this is only possible with files, not with folders.

是的,确实可以添加链接到文件而不是复制它,但这只能用于文件,而不能用于文件夹。

Cant' you just reference the compiled DAL?

不能'你只是参考编译的DAL?