如何使用 dotfuscator 和 TFS 2008 在 Team Build 中启用自动混淆?

发布于 2024-09-05 16:28:38 字数 1918 浏览 1 评论 0原文

我正在尝试使用 TFS 2008 和 VS 2008 实现构建自动化(持续集成)

我们有一个基于 Web (.Net) 的产品,其中包含许多小型和大型项目(一些基于 C# 和一些基于 Vb.Net)。源控制服务器已经就位,用于版本管理(以后称为数据层)。

========================

>所以我所拥有的是:

1。包含项目和构建定义的数据层源代码控制 (TFS 2008) 服务器。

2.构建代理。(已安装 TFS 2008 和 Dotfuscator),具有用于放置“构建”文件的网络共享。

3.应用程序层(Visual Studio 2008,可以访问 1 和 2)。

4. 1,2 和 3 位于同一域中并且可以相互访问

我正在构建代理计算机(Dotfuscator 和 TFS 构建计算机)上工作。目前我已经实现了团队建设。但是,我需要对其进行一些修改并进行混淆。

========================

>> 我的目标:

  1. 使用 Team Build 和自动版本控制构建基于 Web 的产品。
  2. 清除 AppWeb_xxx.dll 文件等文件的构建。
  3. 创建 x86 和 x64
  4. 创建文件夹和文件树以及程序集放置,因为我的 Web 部署项目生成(但 tghe msbuild/team build 没有(???))。

  5. 使用安装在构建代理上的 dotfuscator 4.5 使用自定义目标或其他东西自动混淆 (???)。

  6. Zip x86 和 Release 构建并将文件复制到下载服务器上的适当下载位置。 (自动更新将从这里检查并下载新版本)

==========================

注意:

正确的Web部署项目 将所有二进制程序集复制到 bin 文件夹以及 Web 应用程序 结构。

另一方面,当我表演团队时 使用 TFS 构建,所有程序集都是 放在可写的开放位置 网络共享和文件夹名称 创建发布文件夹 包含应用程序结构 和 bin 文件夹中的程序集 (根据需要)以及奇怪的(不希望的) appxxx.dll 文件。

========================

>> 当前状态:

-我能够创建新的构建定义并编译 Web 项目。 但是,我得到了一些额外的 Appxxxx.dll 文件以及目标程序集,但我不知道如何处理它们。

-我需要设置一个工作点模糊化xml文件(在TFS源代码控制数据层服务器上),并使用特定的混淆选项(重命名属性、保留程序集名称等)仅对选定的程序集进行混淆。

  • 我需要开发分离远程和控制程序集以及 x86 和 x64 程序集的脚本,每个程序集都经过混淆,每个 **x86 和 x64 程序包打包为 **zip 文件**** 并写入网络共享。

这是相当长的路,而我在这里 -- 构建自动化完全不可行。

我需要一些明确的方向来开始我的工作,以及一些可以帮助理解整个过程或类似过程的示例。

请在这方面提供帮助。 (请保持目标受众的菜鸟本性。:-))

谢谢。

I am trying to accomplish Build Automation (Continuous Integration) using TFS 2008 and VS 2008.

We have a Web based (.Net) product which contains a number of small and large projects (Some C# and Some Vb.Net based). A source control server is already in place that is being used for version Management(later referred as Data Tier).

========================

>So what i have is:

1. Data Tier Source Control (TFS 2008) Server containing the Project and Build Definitions .

2. A Build Agent. (TFS 2008 and Dotfuscator Installed) with network share to place "Built" files on.

3. Application Tier (Visual Studio 2008 with access to 1 & 2).

4. 1,2 and 3 lie on the same domain and have access to one another

I am working on a Build Agent Machine (Dotfuscator and TFS Build Machine). Currently i have achieved Team Build. However, i need to do some modification in it and perform obfuscation.

========================

> My Goal:

  1. Build the web based product using Team Build and automatic versioning.
  2. Clean the build from files such as AppWeb_xxx.dll files.
  3. Create x86 and x64
  4. Create an tree of folders and files and assembly placement as my Web deployment project generates (but tghe msbuild/team build does not (???)).

  5. Automatically Obfuscate using dotfuscator 4.5 installed on Build agent using Custom targets or something (???).

  6. Zip x86 and Release builds and copy files to appropriate download locations on download server. (From where automatic Update will check and download the new versions)

========================

Note:

Web Deployment Project correctly
copies all binaries assemplies to the
bin folder along with web application
structure.

On the other hand, when i perform team
build using TFS, all assemblies are
place in the open in the write-able
network share and a folder name
Publish folder is created which
contains the applications structure
and assemblies in the bin folder again
(as desired) along with strange (undesired)
appxxx.dll files.

========================

> Current Status:

-I am able to create a new build definition and compile the web project. However, i get some extra Appxxxx.dll files along with the target assemblies and i have no idea what to do of them.

-I need to setup a working dotfuscation xml file (on TFS Source Control Data TierServer)and accomplish obfuscatioon of only selected Asssemblies with specific obfuscation options (of rename properties, keep assembly names etc etc.).

  • I need to develop script that segregates remote and control assemblies and x86 and x64 asssemblies, each of them obfuscated and each **x86 and x64 package packaged as **zip files**** and written to a network share.

This is fairly long path and here i am
-- a complete nooooob to build automation.

I need some clear direction to start my work with and some samples that can help understand the whole procedure or similar procedure.

Kindly help in this regard.
(Please keep the noobster nature of your target audience. :-))

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文