✅ Single Project Fails With Missing DLL When Started Up With Multiple Startup Projects

I've configured VS for multiple start-up projects, five in total. These are all API projects with no reference dependencies on each other. My fifth project, lets call it MainApi, runs fine on it's own, but when I add it as a fifth startup project, it fails with Could not load file or assembly 'Shared.Logging`. Any guesses as to why this is?
6 Replies
Sehra
Sehra5d ago
logging related so maybe tries to open a file for writing, and trying to open same file as one of the other projects
greyfox
greyfox5d ago
Could be something to do with the build order?
VoidPointer
VoidPointerOP4d ago
No, the error is that it can't find the Shared.Logging dll file, not a log file. We log to GCP, not to file anyway. The project that references Shared.Logging builds fine and the dll is present in the build output folder of the project that breaks.
Unknown User
Unknown User4d ago
Message Not Public
Sign In & Join Server To View
VoidPointer
VoidPointerOP4d ago
It's very, very hard to share whole projects. This is not an error in code, but one that only occurs with a mutli-project startup. I can't share code at all, ISO 27001 and all that, but I will try and obfuscate and anonymise the projects I am battling with a while later today.
Unknown User
Unknown User4d ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?