Changed publishing if-thens to support Windows Store