Page 1 of 1

Has anyone tried to build a WindowsPhone version?

Posted: 10 Sep 2013, 13:55
by iso2000555
I tried to create empty project and put Smartfox2X.dll into it, switch platform to WP8, got the following errors:

Error building Player: Exception: Error: type `System.Timers.Timer` doesn't exist in target framework.
Error: type `System.Timers.Timer` doesn't exist in target framework.
Error: type `System.Timers.Timer` doesn't exist in target framework.
Error: type `System.Net.Dns` doesn't exist in target framework.
Error: type `System.Net.IPHostEntry` doesn't exist in target framework.
Error: type `System.Net.IPHostEntry` doesn't exist in target framework.
Error: type `System.Timers.Timer` doesn't exist in target framework.

any help is appreciated...

Re: Has anyone tried to build a WindowsPhone version?

Posted: 10 Sep 2013, 15:04
by Lapo
Hi,
this is relatively new and we have never tried.
The current API build uses regular network classes found in the .Net/Mono framework and supported by the Unity Editor.

I think the problem here is that Windows Phone uses different .Net packages. But I also find this kind of strange. Isn't Unity supposed to allow you write your code once and then "export it" to whatever native platform? Eg. Android, iOS, Flash etc...

I have done a quick Google search and have found very little documentation on how this is supposed to work. Do you have any resources we can look at?
If Windows 8 Phone requires completely different classes to be supported it would defeat the purpose of writing once and deploying everywhere.

In any case, the next C# API update will also contain native API for both Win8 RT and Win8 Phone.

Hope it helps

Re: Has anyone tried to build a WindowsPhone version?

Posted: 11 Sep 2013, 09:09
by Lapo
Hi again,
I have finally found what I was looking for on the Unity website.
This page:
http://unity3d.com/unity/system-requirements
which clarifies how the requirements for Windows 8 Phone development.

They are:
System Requirements for Windows Store/Windows Phone development

In addition to the general system requirements:

-> Windows Phone SDK 8.0 requires 64-bit Windows 8 Pro or higher. You can't develop Windows Phone 8 apps on Windows 7, on Windows Server 2008, or on Windows Server 2012.

-> Microsoft Visual Studio 2012
This means that you will also need the W8P specific API, not the generic Unity API you would use for the WebPlayer or desktop, I suppose.

We're releasing the native Windows 8 and Windows 8 Phone API during the week, so keep an eye on our website download page for the update.

Thanks

Re: Has anyone tried to build a WindowsPhone version?

Posted: 22 Sep 2013, 08:38
by Lapo
UPDATE:
we have release the Windows 8 and Windows 8 Phone DLLs which can also be used with Unity 4.

Download from here:
http://www.smartfoxserver.com/download/sfs2x#p=client

API Setup Documentation here:
http://docs2x.smartfoxserver.com/Gettin ... api-csharp

Cheers

Re: Has anyone tried to build a WindowsPhone version?

Posted: 25 Sep 2013, 17:05
by gs_vamseemohan
Hi,

I just downloaded the unity examples pack from your site. And im trying to make a WP8 build. and i get this error

Error building Player: Exception: Error: type `System.Timers.Timer` doesn't exist in target framework.
Error: type `System.Timers.Timer` doesn't exist in target framework.
Error: type `System.Timers.Timer` doesn't exist in target framework.
Error: type `System.Net.Dns` doesn't exist in target framework.
Error: type `System.Net.IPHostEntry` doesn't exist in target framework.
Error: type `System.Net.IPHostEntry` doesn't exist in target framework.
Error: type `System.Timers.Timer` doesn't exist in target framework.
.....

The same for any other platform worked so far, but not for WP8, am i missing something here?

Re: Has anyone tried to build a WindowsPhone version?

Posted: 26 Sep 2013, 07:39
by Bax
The Unity examples don't work in Windows 8 / Windows Phone 8 out of the box.
Please follow the instructions provided here: http://docs2x.smartfoxserver.com/Gettin ... api-csharp
(read the Unity paragraph and follow the link to the Unity website).