From f368397e4b7e292a85e71ee224adf8acafb6f05a Mon Sep 17 00:00:00 2001 From: Rutherther Date: Tue, 31 Jan 2023 15:09:36 +0100 Subject: [PATCH] fix(injector): support relative path when injecting --- src/Inject/NosSmooth.Injector/NosInjector.cs | 1 + src/Inject/NosSmooth.Injector/NosSmooth.Injector.csproj | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Inject/NosSmooth.Injector/NosInjector.cs b/src/Inject/NosSmooth.Injector/NosInjector.cs index 0787c19..6ad39b9 100644 --- a/src/Inject/NosSmooth.Injector/NosInjector.cs +++ b/src/Inject/NosSmooth.Injector/NosInjector.cs @@ -81,6 +81,7 @@ public class NosInjector { try { + dllPath = Path.GetFullPath(dllPath); if (!File.Exists(dllPath)) { return new NotFoundError($"Could not find the managed dll file at \"{dllPath}\"."); diff --git a/src/Inject/NosSmooth.Injector/NosSmooth.Injector.csproj b/src/Inject/NosSmooth.Injector/NosSmooth.Injector.csproj index e981c0a..3ea4e36 100644 --- a/src/Inject/NosSmooth.Injector/NosSmooth.Injector.csproj +++ b/src/Inject/NosSmooth.Injector/NosSmooth.Injector.csproj @@ -4,7 +4,8 @@ net7.0 enable enable - 1.0.0 + 1.0.1 + Support relative path when injecting. -- 2.48.1