An error occurred while importing the extension package during the 2. x migration to 3.1.1 today. After multiple searches, the problem was finally solved and shared with you for reference.
Step 1: Import three packages. Import method: solution (right-click)-> Add-> existing project
Import the first libgui. vcxproj (H: \ mycompany \ editboxtest \ cocos2d \ Cocos \ UI \ proj. Win32)
Import the second libextensions. vcxproj (H: \ mycompany \ editboxtest \ cocos2d \ extensions \ proj. Win32)
Import the third libcocosstudio. vcxproj (H: \ mycompany \ editboxtest \ cocos2d \ Cocos \ Editor-support \ cocostudio \ proj. Win32)
After the import, perform step 2.
Step 2: reference the imported project to our project. This is also the cause of the problem ,,
Right-click the project name and choose reference> Add new reference.
Then, select the check box on the front of the newly added project.
Step 3 Add the include directory for our project
Right-click the project name and choose "properties"> "C/C ++", and add "include directory"> "edit ".
Enter the content
$ (Engineroot)
$ (Engineroot) cocos
$ (Engineroot) Cocos \ Editor-support
Finally, compile it and there will be no such error.
Cocos2d-x 3.1.1 Learning Log 17 -- porting error c1083: Unable to open included file: "extensions/extensionmacros. h": no such file or