Visual Studio Project for iOS and Android

Hey,

Does anybody here have a setup that allows one Visual Studio Project for iOS and Android using the Xcode Sync feature of VS?

https://msdn.microsoft.com/en-us/library/mt748656.aspx

Do you have any hints how you got it to work?

I saw this, but I haven’t ever tried it. Our friends at Microsoft have a proj.visualstudio that allows you to use VS for Android development. Perhaps you can start with it and adapt it? You must be running v3.13.1.

Refer to this post: http://discuss.cocos2d-x.org/t/android-developers-use-visual-studio/

Yes, I’ve seen this and I’m quite sure this will work fine for Android.

The questions is: How to adapt this project then to also work with iOS.

If this works, we could use VS to develop and debug on iOS and Android.
As far as I know VS is the only way to debug C++ on Android at the moment.

Also: Does this VS Xcode Sync keep the Xcode project updated?

There’s just so many questions there, but I think this is really worth exploring for us as a community.

If we can setup a guide how to use Visual Studio for Android AND additionally also compile the project for iOS using a Mac, we can simplify using Cocos2d-x and attract new users.
Microsoft did a great step towards us by creating that blog post. If we can get a guide for an all-in-one project to work, they might even post it in their blog.

Many people do not own a Mac, but if this setup works, the existing Android Project could be synced over to a Mac.
I’d be even willing to write the guide, once we found out how this works exactly.

But ideally, we should find somebody who is experienced with VS and can give it a try.

Yes, that would really be great and useful. I tried it with an earlier version of cocos2d-x - even tried to reverse engineer the python build script and wanted to recreate the build process in VS2015 but I couldn’t get it working…

I even created a Github issue on this topic where I proposed to create such a solution. Tried it here in the forums as well. Nobody did seem to care, not even the mighty people at Microsoft (it is their tool and they advertised these features boldly -> https://blogs.msdn.microsoft.com/somasegar/2015/04/17/visual-studio-for-game-development-new-partnerships-with-unity-unreal-engine-and-cocos2d/) ;)…
https://github.com/Microsoft/cocos2d-x/issues/185
Visual Studio 2015 - debugging Android apk in 2 minutes :)

I wouldn’t get my hopes up to high but if you get it working, please report back. We would finally have “one tool to rule them all”:smiley:

kind regards,
m

Yes, having one tool for both iOS and Android is the goal. And if this tool would be VS, we could also make our development platforms as powerful as we want to. I really do love Xcode and OSX, but recently it is just too slow and it does slow me down.

Nonetheless, keep in mind that we will probably never be able to compile for iOS on Windows. We can hope that we get an all-in-one project to work that can compile for iOS on a connect Mac via the Xcode Sync feature of VS.

But our main workflow of testing and coding could be on Windows, using VS and the Android Simulator / Android Device.

Is there a way to adapt proj.visualstudio to latest Cocos2d-X(3.15.1)?

I haven’t tried. Perhaps emailing ianhu@microsoft.com and asking might help. He was the creator of this project. .cc me and I will help facilitate.