I’m building a single-project solution in Visual Studio using Docker. When trying to Debug using Visual Studio, I’m immediately met with the following error:
System.ArgumentException: ‘Startup hook assembly ‘/HotReloadAgent/Microsoft.Extensions.DotNetDeltaApplier.dll’ failed to load. See inner exception for details.’
Inner Exception
FileNotFoundException: Could not load file or assembly ‘/HotReloadAgent/Microsoft.Extensions.DotNetDeltaApplier.dll’. The system cannot find the file specified.
It seems to be happening in System.Private.CoreLib.dll!System.StartupHookProvider.CallStartupHook.
The project runs without issue if I build/run the container from the command line.
I have tried restarting my PC, clean and rebuild, reinstalling Visual Studio, and even reinstalling Docker Desktop just for the heck of it. I’ve also tried re-cloning the repository. Lastly, I’ve googled for hours, but I cannot find a single reference to this issue anywhere on the internet.
Happy to share any related code if you think it’s at all useful, but up to this point my investigation has lead me to believe this isn’t code-related at all (it’s an error within a system DLL, or better yet, a missing system DLL.)
Visual Studio 2022 v17.14.6
Project is .NET 8.
Docker Desktop v4.42.0
