Rewrite the addin for vs2012