Connecting Windows Phone 8 Emulator (on VirtualBox) to Visual Studio (on host machine) - windows-phone-8

I have Visual Studio 2013 (running on the host machine - Windows 8.1 Single Language).
I was able to enable my hardware virtualization features and run the Windows Phone 8 emulator on a virtual machine (through Oracle VirtualBox).
I don't have Windows 8.1 Pro (and it costs money to upgrade), so I can't use Hyper-V.
So, I have the code running on my Visual Studio and an Emulator running on a VM in Oracle VirtualBox. Now, I want these two to connect so that the app can be seen on my emulator. But I can't find a way to do that. Can I do something (maybe connect the two on the same network and use the emulator as a device or something like that) in order to make this happen?
Thanks

You could try using the Application Deployment Tool.
Usually found here:
D:\Program Files\Microsoft SDKs\Windows Phone\v7.0\Tools\XAP Deployment\XapDeploy.exe
You would have to get your compiled XAP to the virtual machine, using a shared folder between host and virtual machine for example.
Then select the device (Emulator) and the XAP and hit deploy.
I hope this helps!

Related

How do I add the Server Hyper-V Emulator 8.1 to my existing project?

I have Windows Server R2 DataCenter w/Hyper-V running, installed the SDK's for Windows Phone development and the Windows Phone Emulator 8.1 U1 is running. On my Windows 8.1 I use Visual Studio 2013 Community for my Universal App development and its also installed on the server.
As of now I have not made any settings changes on the server, so everything is at its default. I already had a working Universal App project running before deciding to use my server (due to I broke my Windows Phone device the other day) for testing my Window Phone app.
Now I have to do all my Windows Phone development on the Server after making modifications and addition to my Windows App on my development machine (NOTE: Windows 8.1 doesn't have a VT cpu).
So my question is, is it possible to add the Windows Emulator 8.1 U1 to my Windows 8.1 project from the Server? This way I don't to keep going to the Server to test the Windows Phone app.
Updated 4-1-2015: additional information and better explanation of question.
Thanks!...
As I understand, you'd like to be able to do the following:
You have a machine X for development, which you can't install emulators on
You have a server Y w/ Phone emulator running
You want to deploy your app directly from machine X to server Y
Unfortunately, remote debugging/deployment to an emulator hosted on a different machine is not supported by VS, at least as far as I'm aware. :(
One thing you could try is using Team Foundation Build to automatically build and deploy your app on your R2 server. You could implement it such that anytime you checked code in, it would be available for ad-hoc testing on your server a few minutes later. This would still mean using Remote Desktop to use the remote emulator, but it would automate the work of getting your changes over to the server. That way you wouldn't have to develop directly on the server.

Unable to run windows phone 8 emulator

I am running visual studio 2013 with windows 8.1 pro , I have enabled hyper-v from bios and enable it from program and features also. Firstly when I run my project it gives message like this
after that when I clicked retry it gives this deployment error
Need help in solving this.
Try running visual studio 2013 as an administrator this sometimes helps fix the permission issue running the emulator the first time.
After checking in that textbox where you have to add your lap to the Hyper-V Administrators, just try restarting the machine.
Have a look over here
You should try out these too
1.Run VS 2012 as administrator.
2.Open Hyper-V Manager and check the Windows Phone Emulator Internal Switch from Virtual Switch Manager. Remove the emulator switch and start a new instance of the emulator.
3.If your host computer has a WLAN connection, you should check whether it is running fine or not.
4.If your host computer is in a dedicated network, you can do a wired tethering and create a peer to peer network with another computer. Enable unrestricted internet in one of the systems, share the connection with the other computer, the emulator running in that, will also get the shared internet.

WP8 emulator on Vmware player not running

I have created a vmware of windows 8.1 in order to develop a wp8 app.
My pc specs :
i7 2670 (2.2)
8 gb ram
win 7 64
My VMware Player spec:
60 gb hdd
4 gb ram
I have installed in the VMware Player visual studio 2012 update 4, and all the wp stuff.
When i am trying to build my project i am getting this error:
emulator Cannot assign the specified number
of processor for virtual machine is out of range
I have searched on the internet but all links i have found refereed to parallels. Nothing helpful for VMware .
I have read this article. I have enabled hyper-v, but i am not sure if VMware can support hardware virtualization, which i think is needed.
My question are 2:
Is these any possible solution to this problem?
If i got a device and try to debug on device i suppose that i will not have any problem. Am i suppose well?
I will appreciate any help.
Thx for your time.
VMWare Player v6. You need to tick Virtualize Intel VT-x/EPT or AMD-V/RIV in virtual machine configuration for WP emulator running.
As per the comments on your question, I'll explain:
You can perform Windows Phone 8.x development on Windows 7 or later provided you have a physical device, however if you want to use the Windows Phone 8.x emulators then you need to have Hyper-V available, this is because the WP8 emulators run as Hyper-V virtual-machines, side-by-side with your main operating system.
Therefore, to use the WP8 emulators you must be running Windows 8 Pro, Windows 8 Enterprise or Windows Server 2012 (or later, e.g. Windows 8.1 Pro). The standard "Home edition" of Windows 8 does not include Hyper-V. Read up about Client Hyper-V on TechNet.
Hyper-V requires hardware virtualisation and, as an accelerated platform with hardware requirements, will not run within another virtualiser (this is in contrast to how you can run VirtualBox or VirtualPC under Hyper-V). You must be running Windows 8 Pro as your "root" operating system.
You actually also need to edit the .vmx file in VMWare Player in order for Hyper-V to be available to the Windows Phone emulator.
Give your VM >= 4GB RAM, 2+ processors, then open the .vmx file for the VM and add:
hypervisor.cpuid.v0 = “FALSE”
Then save, start the VM, and install Windows.
I'll also point out that this works flawlessly on my MacBook Pro Retina running a Hyper-V capable Windows distribution inside of Parallels and Visual Studio 2013 CE.

WP8 Development Hyper-v emulator fails because of virtual swtich/network configuration

I thought I'd try some Windows Phone development. I had to upgrade to Windows 8.1 Enterprise to do it so it's a fresh install.
When running the Windows Phone emulator from Visual Studio I get the following
the emulator couldn't determine the host ip address, which is used to
communicate with the guest virtual machine
A few posts recommend removing the virtual switches and letting Visual Studio add them again as a fix.
When trying to remove switches from the Virtual Switch Manager in the Hyper-v manager I get the following
the emulator couldn't determine the host ip address, which is used to
communicate with the guest virtual machine
Another post mentioned having to add yourself to a Hypervisor Administrator group but I can't find such a group and I'm already in Administrators and Hyper-v Administrators groups.
I've been through the WP8 Emulator troubleshooting guide on MSDN. I've tried uninstalling Hyper-v and re-installing it which does remove the switches but puts me back in the same situation when I run the emulator again.
I've no idea what to try now and I'm going round in circles reading forum posts. Any help would be greatly appreciated.
Thanks
usually a virtual switch just for the windows phone emulator is created. If for some reason it isn't working I'd suggest re-installing the Windows Phone SDK.

Install Win 8.1 and VS 2013 on virtual machine for Win mobile development

On my laptop I have installed Win 7 and VS 2012.But I need to get ready for the Microsoft exam for the "windows store apps using HTML 5, css and javascript". So my idea is to install Win 8.1 and VS 2013 trial versions for get hands on practice for above exams.So my question is can I install Win 8.1 and VS 2013 trial versions on my Laptop without removing the current Win 7 and VS 2012 (Maybe a virtual machine or something like that)?If you know how to achieve above goal please let me know.
In short my whole idea is to get practice for developing Win 8 apps for mobile. If you have other suggestions without installing the above software, please let me know also.
Windows Phone App Development requires Hyper-V & SLAT to run the emulator. That requires your host OS to be at least Windows 8 or better. On a virtual machine you will be able to develop apps, but you won't be able to run them on the emulator.
You can run Visual Studio 2012 and 2013 side by side, but then you would have to upgrade the host machine to Windows 8 Pro.
When both your laptop and your virtualization software support the required CPU features, it is also possible to run the emulator on top of Windows 7.
For more information see this link on the Nokia Developer Portal (Thanks for adding that GSerg!)
General answer (jessehouwing's answer is more accurate):
If your notebook has enough main memory, CPU power, etc. and the CPU ideally supports certain virtualization features, then you should be able to install Windows 8 inside a virtual machine.
To give you an idea how simple this could be, here's an example:
install VirtualBox
start it and set up a virtual machine with the proper CPU and OS settings
define a virtual hard disk that's large enough (this will end up being a file inside your current OS, no need to repartition your real hard disk drive)
get your Windows installation medium ready (a CD or ISO file will do)
point your VM's virtual CD drive to that installation medium
start the virtual machine and install Windows inside it