I’m making cocos2d-x games that can be played on mac and windows.
I already have a project under development with mac xcode.
It runs fine on mac.
I opened win32/MyGame.sln in Visual Studio 2017 to run it on windows.
There were only AppDelegate and HelloWorldScene in src of solution explorer, so I deleted them and drag and drop all files in Classes folder.
When I did retarget solution and built it, it failed with errors.
Several errors “cannot open include file” have been issued for the file that should have been added to src.
The same failure occurred when I executed “cocos run -p win32” in the project directory.
The execution of the test project without any changes was successful.
How can I add and build files correctly in Visual Studio 2017?
I use cocos2d-x 3.17 and Visual Studio 2017.