Wait for the pre_package event to finish, or the update_csproj function might give unexpected results.
Fixes both the wp7 and wp8 parser.