在 Visual Studio 中,进行 .NET 编程时,如何区分文件引用和项目引用?
我打算将一堆单独的解决方案中的 .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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
特定版本
属性不会出现在项目引用中。The
Specific Version
property will not appear in project references.转到项目 ->项目依赖关系。它只会显示项目参考。其他引用将是程序集引用。
Go to Project -> Project Dependencies. It will only show project references. The other references would be assembly references.
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.