From 5f8fd9264c70a756664a0126050ebf3c79a1556d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Bertrand?= Date: Sat, 4 May 2024 07:59:27 +0200 Subject: [PATCH] fix disposable not called --- src/NVika/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NVika/Program.cs b/src/NVika/Program.cs index 5bd79be5..99b06666 100644 --- a/src/NVika/Program.cs +++ b/src/NVika/Program.cs @@ -99,8 +99,8 @@ private void Compose() { try { - var first = new AssemblyCatalog(Assembly.GetExecutingAssembly()); - using (var container = new CompositionContainer(first)) + using(var currentAssemblyCatalog = new AssemblyCatalog(Assembly.GetExecutingAssembly())) + using (var container = new CompositionContainer(currentAssemblyCatalog)) { var batch = new CompositionBatch(); batch.AddExportedValue(new FileSystem());