Skip to content
This repository has been archived by the owner on Jan 27, 2019. It is now read-only.

Disable type name rename when marked with SerializableAttribute #493

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
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
3 changes: 3 additions & 0 deletions Confuser.CLI/Confuser.CLI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@
<Link>Properties\ConfuserEx.snk</Link>
</None>
</ItemGroup>
<ItemGroup>
<None Include="Confuser.CLI.nuspec" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
Expand Down
42 changes: 42 additions & 0 deletions Confuser.CLI/Confuser.CLI.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<!-- The identifier that must be unique within the hosting gallery -->
<id>Confuser.CLI</id>

<!-- The package version number that is used when resolving dependencies -->
<version>1.0.1</version>

<!-- Authors contain text that appears directly on the gallery -->
<authors>yck1509</authors>

<!--
Owners are typically nuget.org identities that allow gallery
users to easily find other packages by the same owners.
-->
<owners>yck1509</owners>

<!-- Project URL provides a link for the gallery -->
<projectUrl>https://github.com/yck1509/ConfuserEx</projectUrl>

<!--
If true, this value prompts the user to accept the license when
installing the package.
-->
<requireLicenseAcceptance>false</requireLicenseAcceptance>

<!--
The description can be used in package manager UI. Note that the
nuget.org gallery uses information you add in the portal.
-->
<description>An open-source, free protector for .NET applications</description>

<!-- Copyright information -->
<copyright>Copyright (c) 2014 yck1509</copyright>
</metadata>

<!-- A readme.txt to display when the package is installed -->
<files>
<file src="..\Release\bin\**" target="content" />
</files>
</package>
3 changes: 3 additions & 0 deletions Confuser.Renamer/AnalyzePhase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ void Analyze(NameService service, ConfuserContext context, ProtectionParameters
// Courtesy
service.SetCanRename(type, false);
}
else if (type.IsSerializable) {
service.SetCanRename(type, false);
}

if (parameters.GetParameter(context, type, "forceRen", false))
return;
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ ConfuserEx
ConfuserEx is a open-source protector for .NET applications.
It is the successor of [Confuser](http://confuser.codeplex.com) project.

NOTICE
======
This project is discontinued and unmaintained. Alternative forked projects can be found in [this issue](https://github.com/yck1509/ConfuserEx/issues/671).

Features
--------
* Supports .NET Framework 2.0/3.0/3.5/4.0/4.5
Expand Down Expand Up @@ -38,4 +42,4 @@ See LICENSE file for details.
Credits
-------
**[0xd4d](https://github.com/0xd4d)** for his awesome work and extensive knowledge!
Members of **[Black Storm Forum](http://board.b-at-s.info/)** for their help!
Members of **[Black Storm Forum](http://board.b-at-s.info/)** for their help!
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.6.0
1.0.0