I have a .Net 6 (Core) API application. When I deploy it, it fails using our CI/CD software because the servers' IIS worker process w3wp.exe seems to have a lock on the app's primary DLL (bin folder).
The API is pretty standard Microsoft best practice regarding async calls and using HttpClient properly (I use HttpClientFactory, I cache, I do seemingly best practice there too).
How can I find out what in my application is making this DLL locked by the worker process? Any tools I could run on the server to help locate the cause?