I have on Visual Studio Solution with multible projects. All projects are c# .net application with on exception. This one is called utility and builds to a class libary. Every Project references the utility project.
Is there a way that the dll created by the utility class is not build for every project separately and in one location?
Visual Studio Solution
Solution
- Project 1 (references utility)
- Project 2 (references utility)
- Project 3 (references utility)
- Project Launcher (references utility)
- Project utility
Current Build Folder Structure
Main Folder
- Launcher.exe
- Utility.dll
-> Project 1 Folder
- 1.exe
- Utility.dll
-> Project 2 Folder
- 2.exe
- Utility.dll
-> Project 3 Folder
- 3.exe
- Utility.dll
Wanted Build Folder Structure
Main Folder
- Launcher.exe
-> Project 1 Folder
- 1.exe
-> Project 2 Folder
- 2.exe
-> Project 3 Folder
- 3.exe
-> References Folder
- Utility.dll
Edit: The applications won't run at the same time and do need to communicate to the same instance. Using a shared project sovled my issue. how-to-make-net-class-library-linkable-no-dll