0

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

Screenshot of error message

1
  • Have you checked that the folder /HotReloadAgent exists in the container and has contents? Can you check your bind mounts to see where /HotReloadAgent is mapped to? It should be something like: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\HotReload. If you don't need hot reload support you can also work around this issue by disabling the feature in containers using Tools->Options by setting "Run a service in containers to enable Hot Reload" to false in the Container Tools->Single Project page. Commented Jun 23 at 19:50

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.