From eae685e65bacacb599dd1c46bf1d8d06058f1488 Mon Sep 17 00:00:00 2001 From: Dmitry Pronin Date: Fri, 13 May 2022 18:28:28 +0300 Subject: [PATCH 1/3] Update Confuser.Core.csproj --- Confuser.Core/Confuser.Core.csproj | 1 + 1 file changed, 1 insertion(+) diff --git a/Confuser.Core/Confuser.Core.csproj b/Confuser.Core/Confuser.Core.csproj index 0d7acf71..20759dd7 100644 --- a/Confuser.Core/Confuser.Core.csproj +++ b/Confuser.Core/Confuser.Core.csproj @@ -7,6 +7,7 @@ net461;netstandard2.0 true ..\ConfuserEx.snk + true From 7ec06abd7625d18b7ea2aa8e7e9dc0407ac6ce22 Mon Sep 17 00:00:00 2001 From: Dmitry Pronin Date: Fri, 13 May 2022 18:29:50 +0300 Subject: [PATCH 2/3] Update PluginDiscovery.cs --- Confuser.Core/PluginDiscovery.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Confuser.Core/PluginDiscovery.cs b/Confuser.Core/PluginDiscovery.cs index f95cdc8f..4b788302 100644 --- a/Confuser.Core/PluginDiscovery.cs +++ b/Confuser.Core/PluginDiscovery.cs @@ -98,8 +98,9 @@ protected virtual void GetPluginsInternal( ConfuserContext context, IList protections, IList packers, IList components) { protections.Add(new WatermarkingProtection()); + var currentAssemblyLocation = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); try { - Assembly protAsm = Assembly.Load("Confuser.Protections"); + Assembly protAsm = Assembly.LoadFrom($"{currentAssemblyLocation}/Confuser.Protections.dll"); AddPlugins(context, protections, packers, components, protAsm); } catch (Exception ex) { @@ -107,7 +108,7 @@ protected virtual void GetPluginsInternal( } try { - Assembly renameAsm = Assembly.Load("Confuser.Renamer"); + Assembly renameAsm = Assembly.LoadFrom($"{currentAssemblyLocation}/Confuser.Renamer.dll"); AddPlugins(context, protections, packers, components, renameAsm); } catch (Exception ex) { @@ -115,7 +116,7 @@ protected virtual void GetPluginsInternal( } try { - Assembly renameAsm = Assembly.Load("Confuser.DynCipher"); + Assembly renameAsm = Assembly.LoadFrom($"{currentAssemblyLocation}/Confuser.DynCipher.dll"); AddPlugins(context, protections, packers, components, renameAsm); } catch (Exception ex) { From 88cd1d047199c9f2b058aefb095896823cefc74e Mon Sep 17 00:00:00 2001 From: Dmitry Pronin Date: Mon, 16 May 2022 12:32:27 +0300 Subject: [PATCH 3/3] Update Confuser.MSBuild.Tasks.csproj --- Confuser.MSBuild.Tasks/Confuser.MSBuild.Tasks.csproj | 1 + 1 file changed, 1 insertion(+) diff --git a/Confuser.MSBuild.Tasks/Confuser.MSBuild.Tasks.csproj b/Confuser.MSBuild.Tasks/Confuser.MSBuild.Tasks.csproj index 06999b4d..6b4a87fe 100644 --- a/Confuser.MSBuild.Tasks/Confuser.MSBuild.Tasks.csproj +++ b/Confuser.MSBuild.Tasks/Confuser.MSBuild.Tasks.csproj @@ -7,6 +7,7 @@ net461;netstandard2.0 true ..\ConfuserEx.snk + true