C
C
csharpnoob2017-09-05 23:48:40
C++ / C#
csharpnoob, 2017-09-05 23:48:40

What is the best way to organize the structure and communication between projects?

My project has the following structure: there are many solutions, each of which contains projects responsible for some functionality of the system.
Project.Data

  • Project.Data - interfaces and classes that abstractly describe how to work with data
  • Project.Data.EF - implementation

Project.Payments
  • Project.Payments - interfaces and classes that abstractly describe how to work with payments
  • Project.Payments.QIWI - implementation
  • Project.Payments.Model - models

Etc.
Some projects may be linked to projects from other solutions. Q: What is the best way to link to other projects?
At the moment, I pack all projects in nupkg and put them in /packages. There is also an option to reference the dll. How to do it better? How do you organize links between libraries in your projects?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stanislav Makarov, 2017-09-06
@Nipheris

What version of VS? What type of project? Is it possible to use the new project system? If yes, then PackageReference and forward.
If not, then through packages.config, as always. Building nuget packages if there are dependencies between solutions is a good idea. Whether you need several solutions - you can't tell right away, Payments looks adequate as an independent solution, Data - it's not clear what it is.

A
Alexander Kuznetsov, 2017-09-06
@DarkRaven

Organized as a Nuget package is a great idea.
In the end, I can recommend this https://github.com/NuGet/NuGetGallery
Deploy it locally, connect its feed to the studio and in general everything will be fine.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question