diff --git a/withdll/Program.cs b/withdll/Program.cs index 6e001ce..6e64eb4 100644 --- a/withdll/Program.cs +++ b/withdll/Program.cs @@ -21,7 +21,13 @@ public static int Main(string[] args) } var dllpaths = (parsedArgs.TryGetValue("d", out var d1) ? d1 : new List(0)).Union( - parsedArgs.TryGetValue("dll", out var d2) ? d2 : new List(0)).ToList(); + parsedArgs.TryGetValue("dll", out var d2) ? d2 : new List(0)) + .Select(Path.GetFullPath).Distinct().ToList(); + if (dllpaths.FirstOrDefault(p => !Path.Exists(p)) is {} p) + { + Console.WriteLine($"Error: DLL file '{p}' does not exist"); + return 1; + } try { diff --git a/withdll/withdll.csproj b/withdll/withdll.csproj index 8127c55..493d7ba 100644 --- a/withdll/withdll.csproj +++ b/withdll/withdll.csproj @@ -4,7 +4,7 @@ Exe net8.0-windows 2023 Sebastian Solnica - 1.0.0.0 + 1.0.1.0 enable enable true