Refactor the code to put the tasks in their own .targets
files instead of in the project. This helps with editing them as there
is no need to unload the project file. Also refactor the variable setting.