Skip to content

Commit

Permalink
Merge pull request #180 from JakubLinhart/fix-IOException
Browse files Browse the repository at this point in the history
Fix IOException caused by unreleased file locks
  • Loading branch information
lucaslorentz authored Jan 16, 2025
2 parents 45f95a6 + ab9c752 commit 98fe88f
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 98fe88f

Please sign in to comment.