I have a Visual Studio (2017) C# solution which is structured like this:
- Solution
- ExeProject
- DLLProject
- NuGet-Dependency to
Stateless
package ("Stateless" is the name of the package)
- NuGet-Dependency to
The DLLProject hides the dependency within its interfaces, i.e. the usage of the Stateless
library is supposed to be an implementation detail of DLLProject
.
The ExeProject
accesses only the public interfaces and factories of DLLProject
.
Due to reasons which go beyond the scope of this question, ExeProject
targets .Net Framework 4.6.1
, while DLLProject
targets .Net Standard 2.0
.
This compiles fine, but when debugging, the Stateless.dll
is not found by the executable.
Is it possible to automatically deploy that DLL when linking against DLLProject
without adding a Stateless
NuGet dependency to the ExeProject
?