在 Visual Studio 中,进行 .NET 编程时,如何区分文件引用和项目引用?

发布于 2024-10-03 01:29:55 字数 331 浏览 1 评论 0原文

我打算将一堆单独的解决方案中的 .NET 项目合并为一个解决方案。有些项目出现在不止一种解决方案中。这一切恰好都是 C#,但我认为这不相关。我们拥有全系列的项目、类项目、Windows 窗体、网站、网络服务。

项目之间的链接是文件引用(添加引用 -> 浏览选项卡)和项目引用(添加引用 -> 项目选项卡)的混合。当所有项目都在同一解决方案中时,我希望将文件引用更改为项目引用。

Visual Studio UI(我使用的是 Visual Studio 2008)是否可以在任何地方允许我区分项目引用和文件引用?如果做不到这一点,是否有一种简单的方法可以通过使用其他工具甚至文本编辑器查看项目文件来判断?

I intend to combine a bunch of .NET projects, in separate solutions, into one solution. Some of the projects appear in more than one solution. It all happens to be C#, but I don't think that's relevant. We have a full range of projects, class project, windows forms, web site, web services.

The links between the projects are a mix of file references (Add Reference -> Browse Tab) and project references (Add Reference -> Projects Tab). I will want to change the file references to project references when all the projects are in the same solution.

Is there anywhere that the Visual Studio UI (I am using Visual Studio 2008) allows me to distinguish a project reference from a file reference? Failing that, is there an easy way to tell by looking at the project file with another tool, or even a text editor?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

凹づ凸ル 2024-10-10 01:29:55

特定版本属性不会出现在项目引用中。

The Specific Version property will not appear in project references.

濫情▎り 2024-10-10 01:29:55

转到项目 ->项目依赖关系。它只会显示项目参考​​。其他引用将是程序集引用。

Go to Project -> Project Dependencies. It will only show project references. The other references would be assembly references.

谎言 2024-10-10 01:29:55

VS 显示解决方案/项目中所有文件的属性,如果您查看属性窗口中的属性,您可以看到路径,这就是我的做法。

VS shows properties for all files in a solution/project and if you look at the properties in the properties window you can see the path, thats how i do it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文