Updated VS Project file
Added thread locking for switchlatest