<p>How can I limit my post-build events to running only for one type of build?</p>

<p>I'm using the events to copy DLL files to a local IIS virtual directory, but I don't want this happening on the build server in release mode.</p>

You can pass the configuration name to the post-build script and check it in there to see if it should run.
Pass the configuration name with
```
$(ConfigurationName)
```
.
Checking it is based on how you are implementing the post-build step -- it will be a command-line argument.