Skip to content

Commit

Permalink
Merge 88cd1d0 into 657fb58
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitory authored May 16, 2022
2 parents 657fb58 + 88cd1d0 commit cba560b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions Confuser.Core/Confuser.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<TargetFrameworks>net461;netstandard2.0</TargetFrameworks>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\ConfuserEx.snk</AssemblyOriginatorKeyFile>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>

<PropertyGroup Label="Assembly Information">
Expand Down
7 changes: 4 additions & 3 deletions Confuser.Core/PluginDiscovery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,24 +98,25 @@ protected virtual void GetPluginsInternal(
ConfuserContext context, IList<Protection> protections,
IList<Packer> packers, IList<ConfuserComponent> 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) {
context.Logger.WarnException("Failed to load built-in protections.", ex);
}

try {
Assembly renameAsm = Assembly.Load("Confuser.Renamer");
Assembly renameAsm = Assembly.LoadFrom($"{currentAssemblyLocation}/Confuser.Renamer.dll");
AddPlugins(context, protections, packers, components, renameAsm);
}
catch (Exception ex) {
context.Logger.WarnException("Failed to load renamer.", ex);
}

try {
Assembly renameAsm = Assembly.Load("Confuser.DynCipher");
Assembly renameAsm = Assembly.LoadFrom($"{currentAssemblyLocation}/Confuser.DynCipher.dll");
AddPlugins(context, protections, packers, components, renameAsm);
}
catch (Exception ex) {
Expand Down
1 change: 1 addition & 0 deletions Confuser.MSBuild.Tasks/Confuser.MSBuild.Tasks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<TargetFrameworks>net461;netstandard2.0</TargetFrameworks>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\ConfuserEx.snk</AssemblyOriginatorKeyFile>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>

<PropertyGroup Label="Nuget Package Settings">
Expand Down

0 comments on commit cba560b

Please sign in to comment.