[VisualStudio] Fix bug in previous commit for #311