为每个用户执行不同的MSBuild任务集? [英] Executing different set of MSBuild tasks for each user?

查看:242
本文介绍了为每个用户执行不同的MSBuild任务集?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们的开发环境中,每个开发人员都有自己的开发服务器。通常情况下,它们并不是在该服务器上开发,而是从本地机器开发,部署到其开发服务器,然后与远程调试器一起进行调试。

In our development environment each developer has their own dev server. Often times they do not actually develop on that server but develop from their local machine, deploy to their dev server, and then attach with the remote debugger to do debugging.

我的问题是我如何使用MSBuild为每个用户执行一组不同的任务?

My question is; how can I use MSBuild to execute a different set of tasks for each user?

我想让每个用户使用MSBuild任务定义自己的构建过程,希望这一定会影响其他开发者。如果给定的用户明确定义了自己的进程,我还需要执行一组默认的任务。

I want to enable each user to define their own build process with MSBuild tasks but I don't want that to necessarily affect the other developers. I also want a default set of tasks to execute if a given user explicitly defined their own process.

示例:


  • SomeProj.csproj


    • 默认MS Build过程是复制到测试服务器或分期服务器

    • Steve的自定义进程是复制到Steve的开发者服务器

    • Eric的自定义进程是复制到Eric的dev服务器

    推荐答案

    您可以使用项目用户文件(* .suo / * .user)一些穷人依赖注入。

    You could use the project user file (*.suo / *.user) to do some 'poor mans dependency injection'.

    看起来像这个人做了类似的事情

    这篇关于为每个用户执行不同的MSBuild任务集?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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