I have a class ProductKeyLib
that is part of project MyProgram-Web
, which itself is a part of solution MyProgram
. As of now, this lib only checks whether the key is valid, but does not generate one.
The interface for key generation will be in project MyProgram-KeyGen
, which also is part of solution MyProgram
.
Now, the tricky part: I would like to have both functions (generation and check) in one class, because, as you may guess, 100% compatibility between key generation and key check is better achieved when everything is in one file, and also my unit tests will be easier then.
But: both programs should include that part in their program, I don't want to have a special dll. Furthermore, MyProgram-Web
should only include the checking part, not the key generation.
Can I do that in VisualStudio? If so, how?