fix environment variable ref in vs sample projects