From 0b9ee19833fc940e1fde9ceaf3e2667a41a9d9b9 Mon Sep 17 00:00:00 2001 From: Lorenzo Delana Date: Wed, 8 Mar 2023 00:41:06 +0100 Subject: [PATCH] Fix assembly path argument for Linux platforms. --- ILSpy.Core/CommandLineArguments.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ILSpy.Core/CommandLineArguments.cs b/ILSpy.Core/CommandLineArguments.cs index 3d599ca..a6cb2e7 100644 --- a/ILSpy.Core/CommandLineArguments.cs +++ b/ILSpy.Core/CommandLineArguments.cs @@ -18,6 +18,7 @@ using System; using System.Collections.Generic; +using System.IO; namespace ICSharpCode.ILSpy { @@ -52,6 +53,8 @@ public CommandLineArguments(IEnumerable arguments) this.NoActivate = true; else if (arg.StartsWith("/config:", StringComparison.OrdinalIgnoreCase)) this.ConfigFile = arg.Substring("/config:".Length); + else if (Path.DirectorySeparatorChar == '/' && File.Exists(arg)) + this.AssembliesToLoad.Add(arg); } else { this.AssembliesToLoad.Add(arg);