我在Visual Studio C#.NET解决方案中有类似以下设置:
Project 1 – TrainDisplay – a WinForms application to display train arrivals.
Project 2 – TrainFetcher – is a re-usable class library to fetch data about trains.
Project 3 – TrainsDataModel is a data model,containing classes common to all other projects,e.g. Train.cs,TrainRoute.cs and so on.
每个都有以下参考:
Project 1 : References 2 and 3
Project 2 : References 3
以这种方式使用引用是不是很糟糕;即项目1最终是否有两个对项目3的引用;一个直接,一个通过项目2?