simplify detect
change compile to use aspnet vnext build system