Disable system sleep during long builds
Posted
by Paul Alexander
on Stack Overflow
See other posts from Stack Overflow
or by Paul Alexander
Published on 2010-04-17T04:08:48Z
Indexed on
2010/04/17
4:13 UTC
Read the original article
Hit count: 273
From time to time I need to run a full build of the entire tool chain for our software on my development machine. To save on power my I've got my dev machine set to go sleep after 20 minutes of inactivity. Building the full tool chain can take up to an hour and I'll often just go to lunch. However, if I forget to disable sleep I can return to a sleeping machine with the build only partially complete.
What I'm looking for is a way to automatically disable sleep while MSBuild is running. Does anyone know of a simple way of doing this?
© Stack Overflow or respective owner