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

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.

Related

Windows Phone Emulator 8 can't install Xamarin application

I have created a Xamarin application and compiled to Release. It was succesfully tested on an Android emulator so I decided to deploy it to a Windows Phone 8.0 Emulator.
I tried to use the Application Deployment but it cannot install because it starts the emulator that never boots, it shows OS starting (starting the emulator on its own is working).
So I downloaded it to the phone and when I try to open it, it says:
Can't install company app. There is a problem with this company app.
Contact your company's support person for help.
Why is the app considered company app? How can I install it to the emulator? What should I set?
The solution consists of two steps.
The company app issue is present because I've downloaded the application from a website, so it is unsafe (the source is the Internet). I have to install it through application deployment (via Visual Studio 2013 or the Windows Phone Application Deployment application).
The second step is to discard (and uninstall) Windows Phone 8.0 and change to Windows Phone 8.1. That helps a lot.

How to debug windows phone apps on windows tablet

Ok so I got windows 8.1 nextbook to test on. I created some basic browser app in visual studio running on virtual windows server 2012 r2. My main machine is windows 7. When I connect with USB cable nothing happens (who could have predicted that). I thought I could deploy my app on tablet and do a debug like that but haven't find a way to do it. Anybody here with experience in this scenario, I googled everywhere and the only thing I found is that documentation sucks
You cannot run a Windows Phone app on Windows. You need a Windows Phone or a Windows Phone emulator to run the Windows Phone app. To run on Windows you need to write a Windows Store app. Windows 8.1 on a tablet is the same as Windows 8.1 on a desktop or laptop computer.
In your case you'll probably need a physical Windows Phone since you are already running virtualized. The Windows Phone emulator is a Hyper-V image and is not supported nested in a Hyper-V guest OS.
If you write a Windows Universal app then the code will be mostly the same for the Windows and Windows Phone targets (the UI layer is usually different), so you can write and test the bulk of the app as a Windows Store app to run on your tablet and then recompile for Windows Phone.

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

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!

Windows phone 8.1 app deployment error :Error-package failed updates, dependency or conflict validation

This is what exactly is did:
Installed windows phone 8.0 SDK.
Installed windows phone 8.1 SDK(By first installing VS 2013 professional edition and later installing update R2).
After that 8.1 application xap deployment is failing
Unable to deploy xap on windows 8.1 phone using 8.1 deployment tool “Error-package failed updates, dependency or conflict validation”
The phone i am using is 8.1 updated
Can you please let me know if iam missing something?
Thanks in advance
Using Windows Phone Application Deployment (8.1), I just ran into same issue. I had tried to install an appx package which was built for Store in Release Mode.
I then realised I was trying to install an ARM build onto the emulator which needs an x86 build to run.
So instead I deployed the ARM Release Mode .appx to a physical device so I could test what I needed to test.
Hope this helps!
Not a real answer but an un-explained work around. I've recently started developing against windows phone. I am working on a Windows 8.1 machine that was previously a Windows 8 machine, previously using VS 2012 to develop against WP 8 and now using VS 2013 to develop for WP 8.1.
At intervals I start to receive the same error as reported by the question, both when deploying our WP 8.1 app to an emulator and when trying to run or debug our WP 8.1 unit tests. So far it's been resolved each time by restarting VS 2013 (and the emulator). Restarting the emulator alone has sometimes been sufficient but not always. I have not checked whether it works against a concrete device. More significantly I have no idea why deployment breaks or stopping/starting resolves it...
Our application and unit tests are WP 8.1 silver light projects and use SQLite.

Which Windows edition to use as a build server for Windows Phone 8 projects?

We plan to create virtual machine to serve as a build server for our Windows Phone 8 projects. According to the official requirements the WP8 SDK runs only on Windows 8. The question is is it possible to install the VS2012 and WP8 SDK also on Windows Server 2012, or should we just use the supported Windows 8?
Note we use Hyper-V for hosting virtual machines and also we don't need the WP8 emulator on that build server.
As a possible alternative (as I haven't tested your issue of building on WS 2012), why don't you use TFS online? It allows for 5 free projects (privately hosted in the cloud). See more here: http://tfs.visualstudio.com/
More on your issue:
I have tried running the WP8 SDK on Windows 7 without any luck (but it's not supported so I understand). Also, I have tried running the WP8 SDK from a Windows 8 Virtual Machine, but the emulator did not run as Hyper-V can't run on Hyper-V without pursuing this option: http://www.developer.nokia.com/Community/Wiki/Windows_Phone_8_SDK_on_a_Virtual_Machine_with_Working_Emulator
Hope this helps in some way, shape, or form.
On my workstation are installed VS2012, WP8 SDK. All works fine.