如何将混淆构建(Smart Assembly 5)放入放置文件夹(TFS 2010)
我的任务是混淆和自动构建我们的项目。我让这两个工作彼此独立,但我需要找到一种方法将混淆的构建放入 TFS2010 中设置的放置文件夹中。
在我的 .vbproj 文件中,我的 MSBuild 代码如下所示:
问题是它正在构建未混淆的代码并将其放入放置文件夹中。 任何想法将不胜感激!
谢谢, 拉里·B.
I've been tasked with obfuscating and auto building our projects. I have the two working great independant of one another, but I need to find a way to get the obfuscated build into the drop folder set in TFS2010.
In my .vbproj file my MSBuild code looks like this:
<PropertyGroup>
<PostBuildEvent>"C:\Program Files\Red Gate\SmartAssembly 5\smartassembly.com" /build "$(ProjectDir)DBManager.saproj" /markasreleased </PostBuildEvent>
</PropertyGroup>
The problem is it's building the unobfuscated code and putting it into the drop folder.
Any ideas would be greatly appreciated!
Thanks,
Larry B.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通常在所有编译完成后执行混淆。然后,我将拥有放置文件夹的一个子文件夹(即 DropFolderPath\Obfuscated),并在将混淆实用程序运行到该子文件夹后输出每个子文件夹。这使得团队能够同时拥有未混淆的程序集和混淆后的程序集的副本。
我也在 MSBuild 之外进行此操作。我在更广泛的基于 Windows Workflow Foundation 的构建 processt 模板中使用 InvokeProcess 工作流活动。
编辑:我实际上在这里整理了一篇关于如何将 SmartAssembly 集成到 TFS 构建过程中的博客文章: http://bit.ly/ SmartAssemblyTFS
I usually perform obfuscation after all compilation is complete. I then will have a subfolder of the drop folder (i.e. DropFolderPath\Obfuscated) and output each one after running my obfuscation utility into that subfolder. That allows the team to have both the unobfuscated assemblies and a copy of the obfuscated assemblies.
I also do it outside of MSBuild. I use InvokeProcess workflow activities in the broader Windows Workflow Foundation-based build processt template.
EDIT: I actually put together a blog post for how to integrate SmartAssembly into the TFS Build process here: http://bit.ly/SmartAssemblyTFS