<p>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.</p>

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

<p>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.</p>

<p>Example:</p>

<ul>
<li>SomeProj.csproj

<ul>
<li>Default MS Build process is to copy to test server or staging server</li>
<li>Custom process for Steve is to copy to Steve's dev server</li>
<li>Custom process for Eric is to copy to Eric's dev server</li>
</ul></li>
</ul>

[{'answer_id': 78067, 'author': 'slf', 'author_id': 13263, 'author_profile': 'https://Stackoverflow.com/users/13263', 'pm_score': 3, 'selected': True, 'text': '<p>You could use the project user file (*.suo / *.user) to do some \'poor mans dependency injection\'.</p>\n\n<p><a href="http://ahmed0192.blogspot.com/2006/11/customize-msbuild-without-modifying.html" rel="nofollow noreferrer">looks like this guy did something similar</a></p>\n'}, {'answer_id': 102482, 'author': 'Jay Bazuzi', 'author_id': 5314, 'author_profile': 'https://Stackoverflow.com/users/5314', 'pm_score': 0, 'selected': False, 'text': "<p>Yeah, I've done this before.  Try trick is to key off <code>$(USERNAME)</code> in your msbuild script.  If you haven't tried editing msbuild scripts before, you've got a lot of learning to do.</p>\n"}]
['https://Stackoverflow.com/questions/78018', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3957/']