Dotfuscator Professional Edition获取代码发布和混淆代码
1 Dotfuscator Professional Edition 4.9 破解版
下载地址:http://www.pc0359.cn/downinfo/39815.html
备份地址:C:\D\99backups\01installSoftware\dotfuscator.rar
2 选择默认选项安装Dotfuscator Professional Edition 4.9
这样命令行的位置才是:C:\Program Files (x86)\PreEmptive Solutions\Dotfuscator Professional Edition 4.9\dotfuscator

3 使用命令行,完成获取TFS代码,发布和混淆代码

Test.xml文件内容如下:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE dotfuscator SYSTEM "http://www.preemptive.com/dotfuscator/dtd/dotfuscator_v2.3.dtd">
<dotfuscator version="2.3">
<!--This is application generated code. Do not edit manually.-->
<input>
<loadpaths />
<asmlist>
<inputassembly refid="2187036c-9db0-4255-bff9-6503db4e55c9">
<option>honoroas</option>
<option>stripoa</option>
<option>library</option>
<option>transformxaml</option>
<file dir="xxx\bin" name="xxx.dll" />
</inputassembly>
<inputassembly refid="5de30783-0123-4804-ad0d-f5d3cd5d570f">
<option>honoroas</option>
<option>stripoa</option>
<option>library</option>
<option>transformxaml</option>
<file dir="xxx\bin" name="xxx.dll" />
</inputassembly>
<inputassembly refid="3c102238-4ba0-4855-84bd-82bc483fa0c9">
<option>honoroas</option>
<option>stripoa</option>
<option>library</option>
<option>transformxaml</option>
<file dir="C:\D\xxx\bin" name="xxx.dll" />
</inputassembly>
</asmlist>
</input>
<output>
<file dir="${configdir}\Dotfuscated" />
</output>
<renaming>
<option>xmlserialization</option>
<mapping>
<mapoutput overwrite="true">
<file dir="${configdir}\Dotfuscated" name="Map.xml" />
</mapoutput>
</mapping>
<referencerulelist>
<referencerule rulekey="{6655B10A-FD58-462d-8D4F-5B1316DFF0FF}" />
<referencerule rulekey="{229FD6F8-5BCC-427b-8F72-A7A413ECDF1A}" />
<referencerule rulekey="{2B7E7C8C-A39A-4db8-9DFC-6AFD38509061}" />
<referencerule rulekey="{494EA3BA-B947-44B5-BEE8-A11CC85AAF9B}" />
<referencerule rulekey="{89769974-93E9-4e71-8D92-BE70E855ACFC}" />
<referencerule rulekey="{7D9C8B02-2383-420f-8740-A9760394C2C1}" />
</referencerulelist>
</renaming>
<controlflow level="high" />
<sos mergeruntime="true">
<option>dontsendtamper</option>
</sos>
<smartobfuscation>
<smartobfuscationreport verbosity="all" overwrite="false" />
</smartobfuscation>
</dotfuscator>
Test.xml文件可以在dotfuscator的UI中进行操作然后把这个文件保存下来,以后每次都可以用这个文件。
批处理代码如下:
@echo off
REM 声明采用UTF-8编码
chcp 65001 REM 删除发布文件
del /s /f /q C:\D\98publish\06Dotfucator\01WebApi\Release\*.* REM 删除混淆文件
del /s /f /q C:\D\98publish\06Dotfucator\01WebApi\Dotfuscated\*.* REM 获取最最新tfs代码
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\tf" get C:\D\02tfs_code\01tesla\SourceCode /login:"用户名","密码" REM 发布WebApi文件
MSBuild C:\D\02tfs_code\xxx\SourceCode\xxx\xxx.csproj /p:Configuration=Release /p:DeployOnBuild=true /p:PublishProfile=C:\D\02tfs_code\xxx\SourceCode\xxx\Properties\PublishProfiles\PublishPub.pubxml /p:VisualStudioVersion=12.0 REM 混淆文件
"C:\Program Files (x86)\PreEmptive Solutions\Dotfuscator Professional Edition 4.9\dotfuscator" /q ".\Test.xml" pause
其中tfs获取最新代码的时候需要用户名和密码,PublishPub.pubxml是发布的配置文件。将上面的代码保存成一个test_dotfuscator.bat。注意文件路径等需要根据自己的需要进行更改。其中xxx是代指。需要调整为自己项目的路径或者名称.
4 遇到过的坑
4.1 只是打开dotfuscator却不执行
原因是VS2013的dotfuscator是社区版本的,并且没有命令行的方式。所以运行命令只会打开dotfuscator的用户界面。
Dotfuscator分为两个版本:一个是专业版本:dotfuscator professional edition,一个是:Dotfuscator CE社区版本。
VS2013自带了一个PreEmptive Dotfuscator and Analytics Community Edition,是一个社区版本的
,并且它只有图形界面的方式dotfuscator.exe,没有命令行dotfuscatorCLI.exe的方式。
PreEmptive Dotfuscator and Analytics Community Edition 中的 dotfuscator.exe 是打开GUI的界面,只会打开界面不会执行
PreEmptive Dotfuscator and Analytics Community Edition 中的 dotfuscatorCLI.exe 是命令行模式。
安装路径下的截图如下。

两个版本的区别如下:
https://www.preemptive.com/products/dotfuscator/compare-editions
4.2 为了dotfuscatorCLI.exe,重装VS2013自带的dotfuscator
VS2013是集成dotfucator的,她没有更新也不可以下载,卸载我也没能实现,因为在uninstall里面不知道卸载哪一个?最后直接放弃这种思路。安装了一个破解版本的dotfuscator.

4.3编译报错找不到Newtonsoft.Json.dll
我以为的原因是,发布之后第三方的dll就不知道从哪里拿?
实际上的原因是,发布之后,所有的dll都在bin目录下,但是因为同一个dll引用的版本不一样,而发布的同一个dll名称只发布一个,所以就造成有的dll可能没有在发布的bin目录下找到的原因。
解决方法:
第一种,把所有的相同的dll都使用同一个版本的dll
第二种,使用自定义的dll路径,如下图:

Dotfuscator Professional Edition获取代码发布和混淆代码的更多相关文章
- [转载]Dotfuscator Professional Edition 4.9.7500.9484 混淆工具破解版+使用教程
如有转载,请注明出处: http://www.cnblogs.com/flydoos/archive/2012/01/26/2329536.html Dotfuscator Professional ...
- .NET混淆工具 (Dotfuscator Professional Edition)
如果不想自己辛辛苦苦码出来的作品被人轻易的破解cpoy就使用这款工具试试吧.^_^ 使用版本:4.9.7500.9484 ,破解版:http://pan.baidu.com/s/1dDH7lr ...
- Dotfuscator可以实现混淆代码、变量名修改、字符串加密
C#编写的代码如果不进行一定程度的混淆和加密,那么是非常容易被反编译进行破解的,特别是对于一些商业用途的C#软件来说,因为盯着的人多,更是极易被攻破.使用VS自带的Dotfuscator可以实现混淆代 ...
- 转:C#使用Dotfuscator混淆代码的加密方法
Author:flymorn Source:flymornCategories:C#编程 PostTime:2011-9-16 1:04:49 正 文: C#编写的代码如果不进行一定程度的混淆和加 ...
- 使用Dotfuscator 进行.Net代码混淆 代码加密的方法
混淆代码能在一定程度上放置代码被盗用,保护我们的知识产权 1.打开vs2012,选择工具-〉Dotfuscator Software Services 2.选择你需要混淆的DLL 文件,可以多选择 3 ...
- C#使用Dotfuscator混淆代码以及加密
http://www.cnblogs.com/tianguook/archive/2012/10/06/2713105.html C#编写的代码如果不进行一定程度的混淆和加密,那么是非常容易被反编译进 ...
- C#使用Dotfuscator混淆代码的加密方法
C#编写的代码如果不进行一定程度的混淆和加密,那么是非常容易被反编译进行破解的,特别是对于一些商业用途的C#软件来说,因为盯着的人多,更是极易被攻破.使用VS自带的Dotfuscator可以实现混淆代 ...
- 关于Unity发布iOS平台代码混淆问题
之前在越狱手机里找到<永恒战士3>的程序发现是用Unity做的,拷出资源出来看的时候发现里面有游戏程序集,立马抽出来反编译了一下,发现里面的代码只有方法签名,没有方法体,还以为用什么高端混 ...
- C#使用Xamarin开发可移植移动应用进阶篇(9.混淆代码,防止反编译)
前言 系列目录 C#使用Xamarin开发可移植移动应用目录 源码地址:https://github.com/l2999019/DemoApp 可以Star一下,随意 - - 说点什么.. 今天讲讲如 ...
随机推荐
- POJ1631 LIS模板
题目:http://poj.org/problem?id=1631 两种nlogn的方法. 1.树状数组优化暴力.有种扫描线的感觉,以时间保证位置,把值作为数组脚标. 2.记录长为...的上升子序列末 ...
- BeanUtils Object 取值赋值
/** * 将结果集导出为Excel * * @param response * @param fsc * @param columns * @param bizType * @throws Exce ...
- html 子元素和父元素都监听了 click 事件,点击子元素时为何先触发的是父元素的 click 事件?
先上一段代码,点击子元素时先触发的是父元素的 click 事件 <html> <head> <script type="text/javascript" ...
- nginx搭建负载均衡
负载均衡:针对web负载均衡简单的说就是将请求通过负债均衡软件或者负载均衡器将流量分摊到其它服务器. 负载均衡的分类如下图: 今天分享一下nginx实现负载均衡的实现,操作很简单就是利用了nginx的 ...
- puppet 工作原理
Puppet的工作细节分成如下几个步骤: 1.客户端puppetd调用facter,facter会探测出这台主机的一些变量如主机名.内存大小.IP地址等.然后puppetd把这些信息发送到服务器端. ...
- HTML5: input:file上传类型控制
ylbtech-HTML5: input:file上传类型控制 1. 一.input:file 属性返回顶部 一.input:file属性 属性值有以下几个比较常用: accept:表示可以选择的 ...
- sublime text 3 3143
下载链接:https://download.sublimetext.com/Sublime%20Text%20Build%203143%20x64%20Setup.exe 注册信息:sublime t ...
- javascript节点操作replaceChild()
replaceChild(a,b)是用来替换文档中的已有元素的 参数a:要插入的节点, 参数b:要替换的节点 var oDiv = document.getElementById("guoD ...
- ICML论文|阿尔法狗CTO讲座: AI如何用新型强化学习玩转围棋扑克游戏
今年8月,Demis Hassabis等人工智能技术先驱们将来到雷锋网“人工智能与机器人创新大会”.在此,我们为大家分享David Silver的论文<不完美信息游戏中的深度强化学习自我对战&g ...
- TensorFlow相关的一些技巧
谷歌开发技术推广工程师 Laurence Moroney 在 Google Cloud Next 大会上进行了一段 42 分钟的演讲,主题是「What's New with TensorFlow?」. ...