This section will go through: the basic prerequisites needed to develop for PowerPointLabs, how to set up the development environment and how to run tests within the development environment.
- Install Office 2016 or 2013 with PowerPoint
- Install SourceTree (recommended), GitHub for Windows, or at least, Git
- Install Visual Studio 2017
- Install
VSTO for IDE
(Visual Studio Tools for Office, AKA the Office SDK):
for VS2015 - http://aka.ms/OfficeDevToolsForVS2015 - Install Microsoft .NET Framework 4.6
- Fork and clone the source codes from this repo
- Turn off Office Version Upgrading: Open the solution
PowerPointLabs\PowerPointLabs.sln
>> open Tools (menu) >> Options >> Office Tools >> Project Migration >> uncheck ‘Always upgrade to installed version of Office’ - Set up External Office Program: Open ‘PowerPointLabs’ Properties >> Debug >> select ‘Start external program’ and choose
POWERPNT.exe
in the Office folder. Ensure that both Debug and Release configurations have set up this - Run the solution by pressing F5 and then PowerPointLabs tab will appear in the PowerPoint ribbon. If you have installed PowerPointLabs add-in, you may have to uninstall it first and rebuild the solution
- If failed to build PowerPointLabs solution, try to install
VSTO for PowerPoint
from this link
- Click Build (menu) >> Rebuild Solution
- Click Test (menu) >> Windows >> Test Explorer
- In the open Test Explorer window, click
Group by Traits
>> right clickFT
>> clickRun Selected Tests
. During the test, DO NOT move the mouse & ensure the Windows UI is in English - In the open Test Explorer window, click
Group by Traits
>> right clickUT
>> clickRun Selected Tests