In my company, we are creating C# client/server applications as follows:
We create three project inside one single Visual Studio solution:
- Product.General
- Product.Client
- Product.Server
The "General" project contains functionality, to be used by both client and server parts.
In order to make this work, we compile the "Product.General" and add the binary as a reference to the "Product.Client" and "Product.Server" projects.
In our source code, this looks as follows:
In the "General" project:
namespace Product.Customer.Configuration
{
public class SettingManager
{
...
}
}
In the "Server" project:
using Product.Customer.Configuration;
...
var settingManager = ...<SettingManager>();
I don't like, because amongst other first you need to get the "General" part compiled before you can even start working on your "Client" or "Server" project.
How can I get such a system to work, without needing to add compiled binaries into projects' references?
Thanks in advance