From da6be54c73bb69cd2179414d1ceb2156532fdaf5 Mon Sep 17 00:00:00 2001 From: YuliiaKovalova Date: Thu, 4 Apr 2024 11:24:54 +0200 Subject: [PATCH 1/2] dispose AssemblyInformation --- src/Tasks/GetAssembliesMetadata.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Tasks/GetAssembliesMetadata.cs b/src/Tasks/GetAssembliesMetadata.cs index d5f67c62f36..520b979be03 100644 --- a/src/Tasks/GetAssembliesMetadata.cs +++ b/src/Tasks/GetAssembliesMetadata.cs @@ -50,12 +50,14 @@ public override bool Execute() // During DTB the referenced project may not has been built yet, so we need to check if the assembly already exists. if (File.Exists(assemblyPath)) { - AssemblyInformation assemblyInformation = new(assemblyPath); - AssemblyAttributes attributes = assemblyInformation.GetAssemblyMetadata(); - - if (attributes != null) + using (AssemblyInformation assemblyInformation = new(assemblyPath)) { - assembliesMetadata.Add(CreateItemWithMetadata(attributes)); + AssemblyAttributes attributes = assemblyInformation.GetAssemblyMetadata(); + + if (attributes != null) + { + assembliesMetadata.Add(CreateItemWithMetadata(attributes)); + } } } } From 11ad2150d21d17de922067f3274da3b386b2d675 Mon Sep 17 00:00:00 2001 From: YuliiaKovalova Date: Thu, 4 Apr 2024 11:27:07 +0200 Subject: [PATCH 2/2] bump version --- eng/Versions.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/Versions.props b/eng/Versions.props index 09c6a48959d..17cd800a163 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -2,7 +2,7 @@ - 17.10.0release + 17.10.1release 17.8.3 15.1.0.0 preview