VS: Refactor logic deciding to add "Deploy" to the .sln file

Move the condition to a "NeedsDeploy" virtual method that can be
overridden by more recent VS generators.
Merge topic 'vs-refactor-sln-deploy' into next

fe161dc3 VS: Refactor logic deciding to add "Deploy" to the .sln file