Skip to content

Commit

Permalink
Fix IOException caused by unreleased file locks.
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubLinhart committed Jan 14, 2025
1 parent 45f95a6 commit ab9c752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MiniCover.Core/Instrumentation/AssemblyInstrumenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public InstrumentedAssembly InstrumentAssemblyFile(
{
var assemblyDirectory = assemblyFile.Directory;

var resolver = ActivatorUtilities.CreateInstance<CustomAssemblyResolver>(_serviceProvider, assemblyDirectory);
using var resolver = ActivatorUtilities.CreateInstance<CustomAssemblyResolver>(_serviceProvider, assemblyDirectory);

_logger.LogTrace("Assembly resolver search directories: {directories}", [resolver.GetSearchDirectories()]);

Expand Down

0 comments on commit ab9c752

Please sign in to comment.