VS 2008 Pro中的自定义生成任务? [英] Custom Build Tasks in VS 2008 Pro?

查看:110
本文介绍了VS 2008 Pro中的自定义生成任务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自定义构建任务仅适用于VS TFS吗?我正在使用VS 2008 Professional.

我的解决方案有3个类库项目,我想将它们合并为一个dll进行部署.

我正在使用ILMerge,这是将dll合并为一个的好工具.我目前正在通过将dll复制到临时目录中,然后对temp目录中的dll运行ILMerge命令来做到这一点.

但是,我认为如果将此合并过程移到.NET解决方案中,则该过程会更加顺畅.

我听说过自定义构建任务,但我还没有真正使用它们.自定义生成任务仅在VS TFS中可用,还是在VS 2008 Professional Edition中可用?

如果VS 2008 Pro中没有自定义生成任务,那么您认为在VS 2008 Pro中管理此合并过程的最佳结构是什么?

Are custom build tasks only available with VS TFS? I am using VS 2008 Professional.

My solution has 3 class library projects and I want to combine them into a single dll for deployment.

I''m using ILMerge which is a good tool for merging the dll''s into one. I''m currently doing this by copying the dlls to a temp directory and then running the ILMerge command against the dlls in the temp directory.

However, I think that this process would be much smoother if I moved this merge process into the .NET solution.

I''ve heard of custom build tasks but I haven''t really used them. Are custom build tasks only available in VS TFS or are they available in VS 2008 Professional edition as well?

If custom build tasks aren''t available in VS 2008 Pro then what do you think is the best structure to manage this merge process within VS 2008 Pro?

推荐答案

I我不确定自定义构建任务,但是解决方案属性中有一些构建事件.您可以对其进行设置,以便在成功的构建中Visual Studio可以为您完成ILMerge.
I am not sure about custom build tasks, but there are build events that are located in your solution properties. You can set it up so on a successful build Visual Studio does the ILMerge for you.


这篇关于VS 2008 Pro中的自定义生成任务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆