From 674ee4cdf320ff66f6a183db039ffd131946dfb7 Mon Sep 17 00:00:00 2001 From: Pedro Debevere Date: Tue, 23 Jan 2024 09:49:54 +0100 Subject: [PATCH] Update InternalFilesAssemblyResolver.cs --- Common/InternalFilesAssemblyResolver.cs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Common/InternalFilesAssemblyResolver.cs b/Common/InternalFilesAssemblyResolver.cs index 879e665..50fb03d 100644 --- a/Common/InternalFilesAssemblyResolver.cs +++ b/Common/InternalFilesAssemblyResolver.cs @@ -34,14 +34,8 @@ public InternalFilesAssemblyResolver(string directory) : this(new[] { directory /// Gets the installation path of the .NET Framework. /// /// The installation path of the .NET Framework. - public static string DotNetFrameworkAssemblyPath - { - get - { - return dotnetFrameworkVersion?.AssembliesPath; - } - } - + public static string DotNetFrameworkAssemblyPath => dotnetFrameworkVersion?.AssembliesPath; + /// public string TryResolve(string assembly) { @@ -84,7 +78,7 @@ private FileInfo TryFindDllFile(string assembly) } } - if(DotNetFrameworkAssemblyPath != null) + if (DotNetFrameworkAssemblyPath != null) { filename = Path.Combine(DotNetFrameworkAssemblyPath, assembly); if (TryGetFileInfo(filename, out info))