If your tenant requires multi-factor authentication, you'll need to perform the following steps to connect to your Exchange email account:
- Navigate to your add-in project's properties. It should appear below Solution Explorer by default, but if it doesn't appear there, select your project from Solution Explorer, then select F4 or View > Properties Window.
- In the Deployment section, set the Use multi-factor auth property to True.
Your tenant sign-in page should appear when you run your project. For additional information, see Build your first Outlook add-in.