Amazing amount of code to make the razor preprocessing work in VS

Read the commit messages :smile: