Skip to content

Mono.Cecil is keeping DLL file handles open during tests #3288

Discussion options

You must be logged in to vote

Yep, that's to be expected. It's necessary for us to provide source information to Visual Studio and VS Code.

We opted to load every DLL because people sometimes put test base classes in an assembly other than the test assembly, so being able to provide source for a test which originated in any loadable assembly would honestly provoke fewer bug reports than assemblies being locked because they're loaded (as moving assemblies around is not a very common operation).

I'll poke around in Cecil to see if there's a way not to lock the file, but I'm guessing that would end up loading everything into RAM instead, which feels like the worse end of the tradeoff.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@sheila-stewart
Comment options

@bradwilson
Comment options

@bradwilson
Comment options

@bradwilson
Comment options

@sheila-stewart
Comment options

Answer selected by sheila-stewart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants