Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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